The IMAPIControl::Activate method performs a task — such as displaying a dialog box or starting a programmatic operation — when the button control is clicked by a user of a client application.
HRESULT Activate(
ULONG ulFlags,
ULONG ulUIParam
);
The IMAPIControl::Activate method performs tasks following a user's click of the button control. After the click occurs, as part of the processing of the display table, MAPI makes a call to Activate after first calling IMAPIControl::GetState to determine if the button is enabled.
For more information about implementing Activate and the other IMAPIControl methods, see Implementing a Control Object.