OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Window objects represent interface elements.
The object is connected to the element through a handle stored in the object's HWindow data member. HWindow is inherited from TWindow. When you construct a window object, its interface element does not yet exist. You must create it in a separate step. TWindow also has a constructor you can use in a DLL to create a window object for an interface element that already exists. Several ObjectWindows classes use TWindow or TFrameWindow as a virtual base. These classes include TDialog, TMDIFrame, TTinyCaption, TMDIChild, TDecoratedFrame, TLayoutWindow, TClipboardViewer, and TFrameWindow. In C++, virtual base classes are constructed first, which means that the derived class's constructor cannot specify default arguments for the base class constructor. There are two ways to handle this problem:
Here are some examples of how to construct a window object using these methods: