Event macros for use with Origin C ComboBox objects include:
Macro | Description |
---|---|
ON_CBN_SELCHANGE(_idCntrl, _ocHandler) | When the selected item in a combo box is change_ocHandler is run. _ocHandler has the prototype:
BOOL _ocHandler(Control ctrl) |
ON_CBN_KILLFOCUS(_idCntrl, _ocHandler) | When the combo box having the resource ID _idCntrl looses focus the function _ocHandler is run. _ocHandler has the prototype:
BOOL _ocHandler(Control ctrl) |
ON_CBN_EDITCHANGE(_idCntrl, _ocHandler) | When the selected item of a combo box is edited the function _ocHandler is run. _ocHandler has the prototype:
BOOL _ocHandler(Control ctrl) |
For a detailed example demonstrating how to handle ComboBox events see the topic Accessing a Combo Box and a Check Box Control with Origin C.