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

If you want all notification codes from the child to be passed to the parent window, use EV_CHILD_NOTIFY_ALL_CODES, the generic handler for child ID notifications.

For example, the sample program BUTTONX.CPP defines this response table:

#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_CHILD_NOTIFY_ALL_CODES(id, method)
Generic handler for child ID notification: rather than specify the specific notification codes you ar...
Definition windowev.h:153
#define EV_COMMAND(id, method)
Response table entry for a menu/accelerator/push button message.
Definition windowev.h:171

This table handles button, check box, and group box messages. In this case, the parent window (TTestWindow) gets all notification messages sent by the child (ID_GROUPBOX). The EV_CHILD_NOTIFY_ALL_CODES macro uses the user-defined function HandleGroupBoxMsg to process these messages. As a result, if the user clicks one of the group box radio buttons, a message box appears that tells the user which button was selected.

See Also