Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

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 )

idsVerbName

The string resource ID of the verb's name.

memberFxn

The function called by the framework when the verb is invoked.

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.

Requirements

Header: afxole.h

Show: