Home COM GDI+ WebBrowser Data Access

ITargetContainer  Interface

 

IID_ITargetContainer

{7847EC01-2BEC-11d0-82B4-00A0C90C29C5}

 

 

This interface retrieves information about the container for the frames.
 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ITargetContainer Methods

Description

GetFrameUrl

Retrieves the URL to load.

GetFramesContainer

Retrieves the container object for the frames.

 

GetFrameUrl

 

FUNCTION Proto_ITargetContainer_GetFrameUrl ( _

  BYVAL pthis AS DWORD PTR _

, BYREF ppszFrameSrc AS DWORD _

  ) AS LONG
 

FUNCTION ITargetContainer_GetFrameUrl ( _

  BYVAL pthis AS DWORD PTR _

, BYREF strFrameSrc AS STRING _

  ) AS LONG
 

  LOCAL HRESULT AS LONG

  LOCAL bstrlen AS LONG

  LOCAL ppszFrameSrc AS DWORD
  CALL DWORD @@pthis[3] USING Proto_ITargetContainer_GetFrameUrl (pthis, ppszFrameSrc) TO HRESULT
  IF ISTRUE ppszFrameSrcTHEN
     bstrlen = lstrlenW(BYVAL ppszFrameSrc)
     IF ISTRUE bstrlen THEN
        strFrameSrc = PEEK$(ppszFrameSrc, bstrlen * 2)
        strFrameSrc = ACODE$(strFrameSrc)
     END IF
     CoTaskMemFree ppszFrameSrc
  END IF
  FUNCTION = HRESULT
 

END FUNCTION
 

 

GetFramesContainer

 

FUNCTION ITargetContainer_GetFramesContainer ( _

  BYVAL pthis AS DWORD PTR _

, BYREF ppContainer AS DWORD _

  ) AS LONG
 

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING ITargetContainer_GetFramesContainer (pthis, ppContainer) TO HRESULT
  FUNCTION = HRESULT
 

END FUNCTION

 

 

Page last updated on Monday, 03 April 2006 20:04:44 +0200