Home COM GDI+ WebBrowser Data Access

IMenuPopup Interface

 

IID_IMenuPopup

{D1E7AFEB-6A2E-11d0-8C78-00C04FD918B4}

 

 

The IMenuPopup interface provides methods to navigate through a menu.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IMenuPopup Methods

Description

Popup

Invokes the menu at the location specified by ppt.

OnSelect

Handles selection notifications.

SetSubmenu

Sets the given menu bar interface to be the submenu of the caller object's interface.

 

Popup

 

FUNCTION IMenuPopup_Popup ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppt AS POINTL _
, BYREF prcExclude AS RECTL _
, BYVAL dwFlags AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING IMenuPopup_Popup (pthis, ppt, prcExclude, dwFlags) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

OnSelect

 

FUNCTION IMenuPopup_OnSelect ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL dwSelectType AS DWORD _
  ) AS LONG

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

END FUNCTION

 

 

SetSubmenu

 

FUNCTION IMenuPopup_SetSubmenu ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pmp AS DWORD _
, BYVAL fSet AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[5] USING IMenuPopup_SetSubmenu (pthis, pmp, fSet) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Wednesday, 15 February 2006 22:55:10 +0100