OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Holds TWindow attributes set during construction of a window. More...
#include <owl/window.h>
Public Attributes | |
uint32 | Style |
Contains the values that define the style, shape, and size of your window. | |
uint32 | ExStyle |
Contains the extended style values of your window. | |
int | X |
horizontal position of top left corenr of the window | |
int | Y |
vertical position of top left corenr of the window | |
int | W |
width of the window | |
int | H |
height of the window | |
TResId | Menu |
Contains the resource ID for the menu associated with this window. | |
int | Id |
Contains the identifier of the child window. | |
LPVOID | Param |
Contains a value that is passed to Windows when the window is created. | |
TResId | AccelTable |
Holds the resource ID for the window's accelerator table. | |
Holds TWindow attributes set during construction of a window.
Your program controls a window's creation by passing these values to one of TWindow's creation routines. If the window is streamed, these attributes are also used for re-creation.
TResId owl::TWindowAttr::AccelTable |
uint32 owl::TWindowAttr::ExStyle |
Contains the extended style values of your window.
These can be any one of the extended style constants (WS_EX_DLGMODALFRAME, WS_EX_NOPARENTNOTIFY, WS_EX_TOPMOST, WS_EX_SHADOW). See TWindow::AdjustWindowRectEx for a description of these constants.
int owl::TWindowAttr::Id |
TResId owl::TWindowAttr::Menu |
LPVOID owl::TWindowAttr::Param |
Contains a value that is passed to Windows when the window is created.
This value identifies a data block that is then available in the message response functions associated with WM_CREATE. Param is used by TMDIClient and can be useful when converting non-ObjectWindows code.
uint32 owl::TWindowAttr::Style |
Contains the values that define the style, shape, and size of your window.
Although TWindow sets Attr.Style to WS_CHILD and WS_VISIBLE, you can also use other combinations of the following style constants:
WS_BORDER Creates
a window with a thin lined borderWS_CAPTION Creates
a window with a title bar.WS_CHILD Creates
a child windows. Cannot be used with popup styles.WS_CHILDWINDOW Creates
a child window.WS_CLIPCHILDREN Used
when creating a parent window. Excludes the area occupied by child windows when drawing takes place within the parent window.WS_CLIPSIBLINGS Clips
child windows relative to the child window that receives a paint message.WS_DISABLED Creates
a window that cannot receive user input.WS_DLGFRAME Creates
a window having a typical dialog box style (without a title bar).WS_GROUP Indicates
the first control in a group of controls, which the user can change by pressing the direction keys.WS_HSCROLL Window
has a horizontal scroll bar.WS_MAXIMIZE Window
is initially maximized.WS_MAXIMIZEBOX Window
has a maximize button.WS_MINIMIZE Window
is initially minimized.WS_MINIMIZEBOX Window
has a minimize button.WS_OVERLAPPED Creates
an overlapped window with a title bar and a border.WS_OVERLAPPEDWINDOW Overlapped
window has the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles.WS_POPUP Creates
a popup window. Cannot be used with child window styles.WS_POPUPWINDOW Creates
a popup window with WS_BORDER, WS_POPUP, and WS_SYSMENU styles. The WS_CAPTION and WS_POPUPWINDOW styles combine to create a system menu.WS_SYSMENU Window
has a system menu box in its title bar. Must also indicate the WS_CAPTION style.WS_TABSTOP Control
can receive the keyboard focus when TAB key is pressed.WS_THICKFRAME Window
has a border that lets you change the window size.WS_VISIBLE Window
is initially visible.WS_VSCROLL Window
has a vertical scroll bar. int owl::TWindowAttr::X |
int owl::TWindowAttr::Y |