2.2.6.33.12 WizardControl::SetEventHandler
Contents
Description
Syntax
BOOL SetEventHandler( ClassObject objEventHandler )
Parameters
- objEventHandler
- initialized from a pointer to some object passed. This objects member functions will be called on the controls events.
Return
returns true if successful else false
Examples
Remark
Sets a specific object to be the event handler for this control. The event handler object can implement part's of the interface described below
to handle those particular events. It will be the programmers responsibility to assure that the lifetime of the object passed in is larger that
of the control itself. By default, the control derived class is set as Event handler.
The following interface is supported.
BOOL OnWizardStepActivate(int nIndexActivate, int nIndexdeactivate); // When Active step is changed, programmatically or graphically
void OnWizardStepCbnSelChange(int nIndex); //When selection of a particular combo box is changed: nIndex = the step to which the combo box is associated
See Also
Header to Include
Control.h