4.1.1.2.2 Handling Button Events

Event macros for use with Origin C Button objects include:

Macro Description
ON_BN_CLICKED(_idCntrl, _ocHandler) When a Button object having the resource ID _idCntrl is clicked the function _ocHandler is run. _ocHandler has the prototype:
BOOL _ocHandler(Control ctrl)

For detailed examples demonstrating how to handle Button object events see the topics Accessing a Push Button and Check Box Controls with Origin C and Accessing Radio Button and Edit Box Controls with Origin C.