Index   Commented   Search   About

Quick Info

Windows NT
Yes
Win95
Yes
Win32s
No
Import Library
-
Header File
shlobj.h
Unicode
No
Platform Notes
None

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

IContextMenu2
, IContextMenu

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun