OWLNext 7.0
Borland's Object Windows Library for the modern age
|
A typical Windows application has many different types of windows: overlapped or pop-up, bordered, scrollable, and captioned, to name a few.
The different types are selected with style attributes. Style attributes, as well as a window's title, are set during a window object's initialization and are used during the interface element's creation.
A window object's creation attributes, such as style and title, are stored in the object's Attr member, a TWindowAttr structure.
The following table shows TWindowAttr's members:
Member | Type | Description |
Style | uint32 | Style constant. |
ExStyle | uint32 | Extended style constant. |
X | int | The horizontal screen coordinate of the window's upper left corner. |
Y | int | The vertical screen coordinate of the window's upper left corner. |
W | int | The window's initial width in screen coordinates. |
H | int | The window's initial height in screen coordinates. |
Menu | TResId | ID of the window's menu resource. Do not try to directly assign a menu identifier to Attr.Menu! Use the AssignMenu function instead. |
Id | int | Child window ID for communicating between a control and its parent. Id should be unique for all child windows of the same parent. If the control is defined in a resource, its Id should be the same as the resource ID. A window should never have both Menu and Id set, since these members actually occupy the same in the window's HWND structure. |
Param | char far * | Used by TMDIClient to hold information about the MDI frame and child windows. |
AccelTable | TResId | ID of the window's accelerator table resource. |