
■ Windows ■ Modules and applications
■ Dialog boxes ■ Doc/View applications
■ Controls ■ Miscellaneous Windows
elements
■ Graphics
■ P intingr
An important part of any Windows application is, of course, the window.
Window classes
ObjectWindows provides several different window classes for different
types of windows (not to be confused with the Windows “window class”
registration types):
■ Windows
■ Frame windows
■ MDI windows
■ Decorated windows
Chapter 6 describes the window classes in detail.
TWindow is the base class for all window classes. It represents the
Windows
functionality common to all windows, whether they are dialog boxes,
controls, MDI windows, or so on.
TFrameWindow is derived from TWindow and adds the functionality of a
Frame windows
frame window that can hold other client windows.
Multiple Document Interface (MDI) is the Windows standard for managing
MDI windows
multiple documents or windows in a single application. TMDIFrame,
TMDIClient, and TMDIChild provide support for MDI in ObjectWindows
applications.
Several classes, such as TLayoutWindow and TLayoutMetrics, work together
Decorated windows
to provide support for decoration controls like tool bars, status bars, and
message bars. Using multiple inheritance, decoration support is added into
frame windows and MDI frame windows in TDecoratedFrame and
TDecoratedMDIFrame.
TDialog is a derived class of TWindow. It’ used to create dialog boxes thats
Dialog box
handle a variety of user interactions. Dialog boxes typically contain
classes
controls to get user input. Dialog box classes are explained in detail in
Chapter 8.
22
OWL P ogrammer’ Guider s