OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Responding To Buttons

When the user clicks a button, the button's parent window receives a notification message.

If the parent window object intercepts the message, it can respond to these events by displaying a dialog box, saving a file, and so on.

To intercept and respond to button messages, define a command response member function for the button. The following example uses ID ID_BUTTON to handle the response to the user clicking the button:

void TTestWindow::HandleButtonMsg()
{
// Button was pressed
}
#define END_RESPONSE_TABLE
Definition eventhan.h:466
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
Definition eventhan.h:492
#define EV_COMMAND(id, method)
Response table entry for a menu/accelerator/push button message.
Definition windowev.h:171

See Also