OWLNext 7.0
Borland's Object Windows Library for the modern age
|
One way dialog boxes manipulate their controls is by sending them messages using member functions inherited from TWindow, with a control message like LB_ADDSTRING.
Control objects greatly simplify this process by providing member functions that send control messages for you.
TListBox::AddString(), for example, takes a string as its parameter and adds it to the list box by calling the list box object's HandleMessage member function:
This example shows how you can call the control objects' member functions via a pointer: