4.1.1.2.7 Handling Simple Dialog Events

Event macros for simple dialog events include:


Macro Description
ON_INIT(_ocHandler) When the dialog is shown the first time the function _ocHandleris run. _ocHandler has the prototype:
BOOL ''_ocHandler''();
ON_OK(_ocHandler) When the OK button is clicked the function _ocHandleris run. _ocHandler has the prototype:
BOOL _ocHandler();
ON_CANCEL(_ocHandler) When the Cancel button is clicked the function _ocHandleris run. has the prototype:
BOOL _ocHandler();
ON_APPLY(_ocHandler) When the Apply button is clicked the function _ocHandleris run. _ocHandler has the prototype:
BOOL ''_ocHandler''();
ON_HELPINFO(_ocHandler) When the Help button is clicked the function _ocHandleris run. _ocHandlerhas the prototype:
BOOL _ocHandler(int &amp, int nHelpID, int nIdCtrlFocus);

For detailed examples demonstrating how to handle simple dialog events see any of the examples in the section Origin C Dialog Builder Examples except for Accessing the Tabs of a Tabbed Dialog with Origin C and Accessing the Pages of a Wizard with Origin C.