Home COM GDI+ WebBrowser Data Access

IOleInPlaceSiteWindowless Interface

 

IID_IOleInPlaceSiteWindowless

{922EADA0-3424-11CF-B670-00AA004CD6D8}

 

 

The IOleInPlaceSiteWindowless interface is derived from and extends the IOleInPlaceSiteEx interface. IOleInPlaceSiteWindowless works with IOleInPlaceObjectWindowless which is implemented on the windowless object. Together, these two interfaces provide services to a windowless object from its container allowing the windowless object to:

  • process window messages

  • participate in drag and drop operations

  • perform drawing operations

Having a window can place unnecessary burdens on small objects, such as controls. It prevents an object from being non-rectangular. It prevents windows from being transparent. It prevents the small instance size needed by many small controls.

 

A windowless object can enter the in-place active state without requiring a window or the resources associated with a window. Instead, the object's container provides the object with many of the services associated with having a window.

 

The windowless object calls the methods in this interface to process window messages, to participate in drag and drop operations, and to perform drawing operations.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IOleWindow Methods

Description

GetWindow

Gets a window handle.

ContextSensitiveHelp

Controls enabling of context-sensitive help.

IOleInPlaceSite Methods

Description

CanInPlaceActivate

Determines if the container can activate the object in place.

OnInPlaceActivate

Notifies the container that one of its objects is being activated in place.

OnUIActivate

Notifies the container that the object is about to be activated in place, and that the main menu will be replaced by a composite menu.

GetWindowContext

Enables an in-place object to retrieve window interfaces that form at the window object hierarchy, and the position in the parent window to locate the object's in-place activation window.

Scroll

Specifies the number of pixels by which the container is to scroll the object.

OnUIDeactivate

Notifies the container to reinstall its user interface and take focus.

OnInPlaceDeactivate

Notifies the container that the object is no longer active in place.

DiscardUndoState

Instructs the container to discard its undo state.

DeactivateAndUndo

Deactivate the object and revert to undo state.

OnposRectChange

Object's extents have changed.

IOleInPlaceSiteEx Methods

Description

OnInPlaceActivateEx

Called by the embedded object to determine if it needs to redraw itself upon activation.

OnInplaceDeactivateEx

Notifies the container of whether the object needs to be redrawn upon deactivation.

RequestUIActivate

Notifies the container that the object is about to enter the UI-active state.

IOleInPlaceSiteWindowless Methods

Description

CanWindowlessActivate

Informs an object if its container can support it as a windowless object that can be in-place activated.

GetCapture

Called by an in-place active, windowless object to determine if it still has the mouse capture or not.

SetCapture

Enables an in-place active, windowless object to capture all mouse messages.

GetFocus

Called by an in-place active, windowless object to determine if it still has the keyboard focus or not.

SetFocus

Sets the keyboard focus for a UI-active, windowless object.

GetDC

Provides an object with a handle to a device context for a screen or compatible device from its container.

ReleaseDC

Releases the device context previously obtained by a call to IOleInPlaceSiteWindowless::GetDC.

InvalidateRect

Enables an object to invalidate a specified rectangle of its in-place image on the screen.

InvalidateRgn

Enables an object to invalidate a specified region of its in-place image on the screen.

ScrollRect

Enables an object to scroll an area within its in-place active image on the screen.

AdjustRect

Adjusts a specified rectangle if it is entirely or partially covered by overlapping, opaque objects.

OnDefWindowMessage

Invokes the default processing for all messages passed to an object.

 

CanWindowlessActivate

 

FUNCTION IOleInPlaceSiteWindowless_CanWindowlessActivate ( _

  BYVAL pthis AS DWORD PTR _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[18] USING IOleInPlaceSiteWindowless_CanWindowlessActivate (pthis) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

GetCapture

 

FUNCTION IOleInPlaceSiteWindowless_GetCapture ( _

  BYVAL pthis AS DWORD PTR _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[19] USING IOleInPlaceSiteWindowless_GetCapture (pthis) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

SetCapture

 

FUNCTION IOleInPlaceSiteWindowless_SetCapture ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL fCapture AS LONG _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[20] USING IOleInPlaceSiteWindowless_SetCapture (pthis, fCapture) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

GetFocus

 

FUNCTION IOleInPlaceSiteWindowless_GetFocus ( _

  BYVAL pthis AS DWORD PTR _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD
@@pthis[21] USING IOleInPlaceSiteWindowless_GetFocus (pthis) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

SetFocus

 

FUNCTION IOleInPlaceSiteWindowless_SetFocus ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL fFocus AS LONG _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[22] USING IOleInPlaceSiteWindowless_SetFocus (pthis, fFocus) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetDC

 

FUNCTION IOleInPlaceSiteWindowless_GetDC ( _

  BYVAL pthis AS DWORD PTR _

, BYREF pRect AS RECT _

, BYVAL grfFlags AS DWORD _

, BYREF phDC AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[23] USING IOleInPlaceSiteWindowless_GetDC (pthis, pRect, grfFlags, phDC) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

ReleaseDC

 

FUNCTION IOleInPlaceSiteWindowless_ReleaseDC ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL hDC AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[24] USING IOleInPlaceSiteWindowless_ReleaseDC (pthis, hDC) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

InvalidateRect

 

FUNCTION IOleInPlaceSiteWindowless_InvalidateRect ( _

  BYVAL pthis AS DWORD PTR _

, BYREF pRect AS RECT _

, BYVAL fErase AS LONG _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[25] USING IOleInPlaceSiteWindowless_InvalidateRect (pthis, pRect, fErase) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

InvalidateRgn

 

FUNCTION IOleInPlaceSiteWindowless_InvalidateRgn ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL hRGN AS DWORD _

, BYVAL fErase AS LONG _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[26] USING IOleInPlaceSiteWindowless_InvalidateRgn (pthis, hRGN, fErase) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

ScrollRect

 

FUNCTION IOleInPlaceSiteWindowless_ScrollRect ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL dx AS LONG _

, BYVAL dy AS LONG _

, BYREF pRectScroll AS RECT _

, BYREF pRectClip AS RECT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[27] USING IOleInPlaceSiteWindowless_ScrollRect (pthis, dx, dy, pRectScroll, pRectClip) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

AdjustRect

 

FUNCTION IOleInPlaceSiteWindowless_AdjustRect ( _

  BYVAL pthis AS DWORD PTR _

, BYREF prc AS RECT _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[28] USING IOleInPlaceSiteWindowless_AdjustRect (pthis, prc) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

OnDefWindowMessage

 

FUNCTION IOleInPlaceSiteWindowless_OnDefWindowMessage ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL msg AS DWORD _

, BYVAL wParam AS DWORD _

, BYVAL lParam AS LONG _

, BYREF plResult AS DWORD _

  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[28] USING IOleInPlaceSiteWindowless_OnDefWindowMessage (pthis, msg, wParam, lParam, plResult) TO HRESULT
  FUNCTION = HRESULT


END FUNCTION

 

 

IOleInPlaceSiteWindowless interface implementation

 


$IID_IOleInPlaceSiteWindowless = GUID$("{922EADA0-3424-11CF-B670-00AA004CD6D8}")

' ****************************************************************************************
' IOleInPlaceSiteWindowless interface
' ****************************************************************************************
TYPE IOleInPlaceSiteWindowlessVtbl
   ' IUnknown methods
   pQueryInterface          AS DWORD          ' // QueryInterface method
   pAddRef                  AS DWORD          ' // AddRef method
   pRelease                 AS DWORD          ' // Release method
   ' IOleWindow  members
   pGetWindow               AS DWORD          ' // GetWindow method
   pContextSensitiveHelp    AS DWORD          ' // GetWindow method
   ' IOleInPlaceSite members
   pCanInPlaceActivate      AS DWORD          ' // CanInPlaceActivate method
   pOnInPlaceActivate       AS DWORD          ' // OnInPlaceActivate method
   pOnUIActivate            AS DWORD          ' // OnUIActivate method
   pGetWindowContext        AS DWORD          ' // GetWindowContext method
   pScroll                  AS DWORD          ' // Scroll method
   pOnUIDeactivate          AS DWORD          ' // OnUIDeactivate method
   pOnInPlaceDeactivate     AS DWORD          ' // OnInPlaceDeactivate method
   pDiscardUndoState        AS DWORD          ' // DiscardUndoState method
   pDeactivateAndUndo       AS DWORD          ' // DeactivateAndUndo method
   pOnposRectChange         AS DWORD          ' // OnposRectChange method
   ' IOleInPlaceSiteEx members
   pOnInPlaceActivateEx     AS DWORD          ' // OnInPlaceActivateEx method
   pOnInplaceDeactivateEx   AS DWORD          ' // OnInplaceDeactivateEx method
   pRequestUIActivate       AS DWORD          ' // RequestUIActivate method
   ' IOleInPlaceSiteWindowless members
   pCanWindowlessActivate   AS DWORD          ' // CanWindowlessActivate method
   pGetCapture              AS DWORD          ' // GetCapture method
   pSetCapture              AS DWORD          ' // SetCapture method
   pGetFocus                AS DWORD          ' // GetFocus method
   pSetFocus                AS DWORD          ' // SetFocus method
   pGetDC                   AS DWORD          ' // GetDC method
   pReleaseDC               AS DWORD          ' // ReleaseDC method
   pInvalidateRect          AS DWORD          ' // InvalidateRect method
   pInvalidateRgn           AS DWORD          ' // InvalidateRgn method
   pScrollRect              AS DWORD          ' // ScrollRect method
   pAdjustRect              AS DWORD          ' // AdjustRect method
   pOnDefWindowMessage      AS DWORD                ' // OnDefWindowMessage method
   ' Custom data
   pVtblAddr                AS DWORD          ' // Address of the virtual table
   cRef                     AS DWORD          ' // Reference count
END TYPE
' ****************************************************************************************

' ****************************************************************************************
' Builds the IOleInPlaceSiteWindowless Virtual Table
' Returns a cookie that is a pointer to a IOleInPlaceSiteWindowlessVtbl structure.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_BuildVtbl () AS DWORD

   LOCAL pVtbl AS IOleInPlaceSiteWindowlessVtbl PTR
   LOCAL pUnk AS IOleInPlaceSiteWindowlessVtbl PTR

   pVtbl = HeapAlloc(GetProcessHeap(), %HEAP_ZERO_MEMORY, SIZEOF(@pVtbl))
   IF pVtbl = 0 THEN EXIT FUNCTION

   @pVtbl.pQueryInterface          = CODEPTR(IOleInPlaceSiteWindowless_QueryInterface)
   @pVtbl.pAddRef                  = CODEPTR(IOleInPlaceSiteWindowless_AddRef)
   @pVtbl.pRelease                 = CODEPTR(IOleInPlaceSiteWindowless_Release)

   @pVtbl.pGetWindow               = CODEPTR(IOleInPlaceSiteWindowless_GetWindow)
   @pVtbl.pContextSensitiveHelp    = CODEPTR(IOleInPlaceSiteWindowless_ContextSensitiveHelp)
   @pVtbl.pCanInPlaceActivate      = CODEPTR(IOleInPlaceSiteWindowless_CanInPlaceActivate)
   @pVtbl.pOnInPlaceActivate       = CODEPTR(IOleInPlaceSiteWindowless_OnInPlaceActivate)
   @pVtbl.pOnUIActivate            = CODEPTR(IOleInPlaceSiteWindowless_OnUIActivate)
   @pVtbl.pGetWindowContext        = CODEPTR(IOleInPlaceSiteWindowless_GetWindowContext)
   @pVtbl.pScroll                  = CODEPTR(IOleInPlaceSiteWindowless_Scroll)
   @pVtbl.pOnUIDeactivate          = CODEPTR(IOleInPlaceSiteWindowless_OnUIDeactivate)
   @pVtbl.pOnInPlaceDeactivate     = CODEPTR(IOleInPlaceSiteWindowless_OnInPlaceDeactivate)
   @pVtbl.pDiscardUndoState        = CODEPTR(IOleInPlaceSiteWindowless_DiscardUndoState)
   @pVtbl.pDeactivateAndUndo       = CODEPTR(IOleInPlaceSiteWindowless_DeactivateAndUndo)
   @pVtbl.pOnposRectChange         = CODEPTR(IOleInPlaceSiteWindowless_OnposRectChange)
   @pVtbl.pOnInPlaceActivateEx     = CODEPTR(IOleInPlaceSiteWindowless_OnInPlaceActivateEx)
   @pVtbl.pOnInplaceDeactivateEx   = CODEPTR(IOleInPlaceSiteWindowless_OnInplaceDeactivateEx)
   @pVtbl.pRequestUIActivate       = CODEPTR(IOleInPlaceSiteWindowless_RequestUIActivate)

   @pVtbl.pCanWindowlessActivate   = CODEPTR(IOleInPlaceSiteWindowless_CanWindowlessActivate)
   @pVtbl.pGetCapture              = CODEPTR(IOleInPlaceSiteWindowless_GetCapture)
   @pVtbl.pSetCapture              = CODEPTR(IOleInPlaceSiteWindowless_SetCapture)
   @pVtbl.pGetFocus                = CODEPTR(IOleInPlaceSiteWindowless_GetFocus)
   @pVtbl.pSetFocus                = CODEPTR(IOleInPlaceSiteWindowless_SetFocus)
   @pVtbl.pGetDC                   = CODEPTR(IOleInPlaceSiteWindowless_GetDC)
   @pVtbl.pReleaseDC               = CODEPTR(IOleInPlaceSiteWindowless_ReleaseDC)
   @pVtbl.pInvalidateRect          = CODEPTR(IOleInPlaceSiteWindowless_InvalidateRect)
   @pVtbl.pInvalidateRgn           = CODEPTR(IOleInPlaceSiteWindowless_InvalidateRgn)
   @pVtbl.pScrollRect              = CODEPTR(IOleInPlaceSiteWindowless_ScrollRect)
   @pVtbl.pAdjustRect               = CODEPTR(IOleInPlaceSiteWindowless_AdjustRect)
   @pVtbl.pOnDefWindowMessage       = CODEPTR(IOleInPlaceSiteWindowless_OnDefWindowMessage)

   @pVtbl.pVtblAddr                = pVtbl
   @pVtbl.cRef                     = 1

   pUnk = VARPTR(@pVtbl.pVtblAddr)
   FUNCTION = pUnk

END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' IOleInPlaceSiteWindowless_QueryInterface method
' Returns the IUnknown of our class and increments the reference counter.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_QueryInterface (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYREF riid AS GUID, BYREF ppvObj AS DWORD) AS LONG
   IF riid = $IID_IOleInPlaceSiteWindowless THEN
      ppvObj = pCookie
      INCR @@pCookie.cRef
      FUNCTION = %S_OK
   ELSE
      FUNCTION = %E_NOINTERFACE
   END IF
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' IOleInPlaceSiteWindowless_AddRef method
' Increments the reference counter.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_AddRef (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS DWORD
   INCR @@pCookie.cRef
   FUNCTION = @@pCookie.cRef
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' IOleInPlaceSiteWindowless_Release method
' Releases our class if there is only a reference to him and decrements the reference counter.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_Release (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS DWORD
   DECR @@pCookie.cRef
   FUNCTION = @@pCookie.cRef
   IF @@pCookie.cRef = 0 THEN
      IF ISTRUE @@pCookie.pVtblAddr THEN
         HeapFree(GetProcessHeap(), 0, BYVAL @@pCookie.pVtblAddr)
      END IF
   END IF
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Gets a window handle.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_GetWindow (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYREF phwnd AS DWORD) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Controls enabling of context-sensitive help.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_ContextSensitiveHelp (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYVAL fEnterMode AS LONG) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Determines if the container can activate the object in place.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_CanInPlaceActivate (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Notifies the container that one of its objects is being activated in place.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_OnInPlaceActivate (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Notifies the container that the object is about to be activated in place, and that the
' main menu will be replaced by a composite menu.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_OnUIActivate (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Enables an in-place object to retrieve window interfaces that form at the window object
' hierarchy, and the position in the parent window to locate the object's in-place
' activation window.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_GetWindowContext (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYREF ppFrame AS DWORD, BYREF ppDoc AS DWORD, BYREF lprcPosRect AS RECT, BYREF lprcClipRect AS RECT, BYREF lpFrameInfo AS DWORD) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Specifies the number of pixels by which the container is to scroll the object.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_Scroll (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYREF scrollExtant AS apiSIZE) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Notifies the container to reinstall its user interface and take focus.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_OnUIDeactivate (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYVAL fUndoable AS LONG) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Notifies the container that the object is no longer active in place.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_OnInPlaceDeactivate (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Instructs the container to discard its undo state.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_DiscardUndoState (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Deactivate the object and revert to undo state.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_DeactivateAndUndo (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Object's extents have changed.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_OnposRectChange (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYREF lprcPosRect AS RECT) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Called by the embedded object to determine if it needs to redraw itself upon activation.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_OnInPlaceActivateEx (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYREF pfNoRedraw AS LONG, BYVAL dwFlags AS DWORD) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Notifies the container of whether the object needs to be redrawn upon deactivation.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_OnInplaceDeactivateEx (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYVAL fNoRedraw AS LONG) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Notifies the container that the object is about to enter the UI-active state.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_RequestUIActivate (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Informs an object if its container can support it as a windowless object that can be
' in-place activated.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_CanWindowlessActivate (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Called by an in-place active, windowless object to determine if it still has the mouse
' capture or not.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_GetCapture (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Enables an in-place active, windowless object to capture all mouse messages.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_SetCapture (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYVAL fCapture AS LONG) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Called by an in-place active, windowless object to determine if it still has the
' keyboard focus or not.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_GetFocus (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Sets the keyboard focus for a UI-active, windowless object.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_SetFocus (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYVAL fFocus AS LONG) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Provides an object with a handle to a device context for a screen or compatible device
' from its container.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_GetDC (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYREF pRect AS RECT, BYVAL grfFlags AS DWORD, BYREF phDC AS DWORD) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Releases the device context previously obtained by a call to IOleInPlaceSiteWindowless::GetDC.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_ReleaseDC (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYVAL hDC AS DWORD) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Enables an object to invalidate a specified rectangle of its in-place image on the screen.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_InvalidateRect (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYREF pRect AS RECT, BYVAL fErase AS LONG) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Enables an object to invalidate a specified region of its in-place image on the screen.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_InvalidateRgn (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYVAL hRGN AS DWORD, BYVAL fErase AS LONG) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Enables an object to scroll an area within its in-place active image on the screen.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_ScrollRect (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYVAL DX AS LONG, BYVAL dy AS LONG, BYREF pRectScroll AS RECT, BYREF pRectClip AS RECT) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Adjusts a specified rectangle if it is entirely or partially covered by overlapping,
' opaque objects.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_AdjustRect (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYREF prc AS RECT) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************

' ****************************************************************************************
' Invokes the default processing for all messages passed to an object.
' ****************************************************************************************
FUNCTION IOleInPlaceSiteWindowless_OnDefWindowMessage (BYVAL pCookie AS IOleInPlaceSiteWindowlessVtbl PTR, BYVAL msg AS DWORD, BYVAL wParam AS DWORD, BYVAL lParam AS LONG, BYREF plResult AS DWORD) AS LONG
   ' Put your code here
END FUNCTION
' ****************************************************************************************
 

 

Page last updated on Monday, 03 April 2006 20:32:50 +0200