Index   Commented   Search   About

Quick Info

Windows NT
Yes
Win95
Yes
Win32s
Yes
Import Library

Header File
richole.h
Unicode

Platform Notes
None

IRichEditOleCallback::GetContextMenu

Queries the application for a context menu to use on a right mouse down.

HRESULT GetContextMenu(

WORD seltyp,

LPOLEOBJECT lpoleobj,

CHARRANGE FAR * lpchrg,

HMENU FAR * lphmenu

);

Parameters

seltype

selection type

lpoleobj

Pointer to a OLEOBJECT structure specifying the first selected OLE object if the selection contains one or more objects NULL otherwise. The caller must use AddRef to increment the object reference count if it holds onto it.

lpchrg

Pointer to a CHARRANGE structure containing the current selection.

lphmenu

Pointer to a variable containing the handle of a context menu to use. This parameter is ignored if an error is returned. A rich edit control destroys the menu when it is finished with it so the client should not.

Return Values

Returns success status.

See Also

CHARRANGE
, IRichEditOleCallback

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