IContextMenu2::HandleMenuMsgIContextMenu2::HandleMenuMsg*
*Contents  *Index  *Topic Contents
*Previous Topic: IContextMenu2::GetCommandString
*Next Topic: IContextMenu2::InvokeCommand

IContextMenu2::HandleMenuMsg


HRESULT HandleMenuMsg(
    UINT uMsg,
    WPARAM wParam,
    LPARAM lParam
   );

Allows client objects of the IContextMenu interface to handle messages associated with owner-drawn menu items.

uMsg
Message to be processed. If it is WM_INITPOPUP, WM_DRAWITEM, or WM_MEASUREITEM, the client object being called may provide owner-drawn menu items.
wParam
Additional message information. The value of this parameter depends on the value of the uMsg parameter.
lParam
Additional message information. The value of this parameter depends on the value of the uMsg parameter.

HandleMenuMsg is called when a client of IContextMenu determines that the IContextMenu2 interface is supported and receives one of the messages specified in the description of the uMsg parameter.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.