OWLNext 7.0
Borland's Object Windows Library for the modern age
|
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:
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.