Event macros for use with Origin C Button objects include:
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.