ON_OLEVERB
TRY
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

ON_OLEVERB

This macro defines a message map entry that maps a custom verb to a specific member function of your control.

ON_OLEVERB(idsVerbName, memberFxn )

Parameters

idsVerbName
The string resource ID of the verb's name.
memberFxn
The function called by the framework when the verb is invoked.

Remarks

The resource editor can be used to create custom verb names that are added to your string table.

The function prototype for memberFxn is:

BOOL memberFxn(
   LPMSG lpMsg,
   HWND hWndParent,
   LPCRECT lpRect 
);

The values of the lpMsg, hWndParent, and lpRect parameters are taken from the corresponding parameters of the IOleObject::DoVerb member function.

See Also

MFC Macros and Globals | ON_STDOLEVERB

Show:
© 2016 Microsoft