OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Constructing and Destroying Control Objects

Regardless of the type of control object you're using, there are several tasks you need to perform for each:

  • Constructing the control object
  • Showing the control
  • Destroying the control

Constructing Control Objects

Constructing a control object is no different from constructing any other child window. Generally, the parent window's constructor calls the constructors of all its child windows.

Controls communicate with parent windows in special ways (called notifications) in addition to the usual links between parent and child.

To construct and initialize a control object:

  1. Add a control object pointer data member to the parent window.
  2. Call the control object's constructor.
  3. Change any control attributes.
  4. Initialize the control in SetupWindow.

See Also