OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Setting Creation Attributes

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:

MemberTypeDescription
Styleuint32Style constant.
ExStyleuint32Extended style constant.
XintThe horizontal screen coordinate of the window's upper left corner.
YintThe vertical screen coordinate of the window's upper left corner.
WintThe window's initial width in screen coordinates.
HintThe window's initial height in screen coordinates.
MenuTResIdID of the window's menu resource. Do not try to directly assign a menu identifier to Attr.Menu! Use the AssignMenu function instead.
IdintChild 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.
Paramchar far *Used by TMDIClient to hold information about the MDI frame and child windows.
AccelTableTResIdID of the window's accelerator table resource.

See Also