Setting up an interface object with its associated interface element requires two steps:
- Calling one of the interface object constructors, which constructs the interface object and sets its attributes
- Creating the interface element by telling Windows to create the interface object with a new interface element, depending on the kind of element, as follows:
- When creating most interface elements, you call the interface object's Create member function (for example, TWindow::Create()). Create also indirectly calls TWindow::SetupWindow(), which initializes the interface object by creating an interface element, such as a child window.
- When creating a modal dialog box, you create the interface element by calling the interface object's Execute member function.
The association between the interface object and the interface element is maintained by the interface object's HWindow data member, a handle to a window.
In creating interface objects, the following topics will be helpful:
See Also