IContextMenu2::HandleMenuMsg  
[Now
Supported on Windows NT]
Allows client
objects of IContextMenu
to handle messages associated with owner-drawn menu items.
HRESULT HandleMenuMsg(
|     UINT uMsg, | //Specifies
  the message | 
|     WPARAM wParam, | //Depends
  on the contents of uMsg | 
|     LPARAMlParam | //Depends
  on the contents of uMsg | 
|    ); |  | 
Parameters
uMsg
Specifies the
message to be processed. If it is either WM_INITPOPUP, WM_DRAWITEM, or
WM_MEASUREITEM, the client object being called may provide owner-drawn menu
items.
wParam
Specifies
additional message information. The value of this parameter depends on the
value of the uMsg parameter.
lParam
Specifies
additional message information. The value of this parameter depends on the
value of the uMsg parameter.
Return Values
Returns
NOERROR if successful or an OLE-defined error code otherwise.
Remarks
HandleMenuMsg is called when a client of IContextMenu is
aware of the IContextMenu2 interface and receives one of the messages
specified in the description of the uMsg parameter while the client is
processing menu messages.
See Also