OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TWindowAttr Struct Reference

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.
 

Detailed Description

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.

Note
Don't rely on these to track once Handle has been created, use member functions to access information.

Definition at line 295 of file window.h.

Member Data Documentation

◆ AccelTable

TResId owl::TWindowAttr::AccelTable

Holds the resource ID for the window's accelerator table.

Definition at line 360 of file window.h.

◆ ExStyle

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.

Definition at line 337 of file window.h.

◆ H

int owl::TWindowAttr::H

height of the window

Definition at line 342 of file window.h.

◆ Id

int owl::TWindowAttr::Id

Contains the identifier of the child window.

For a dialog box control, Id is its resource identifier. If Win32 is defined, Id is set to GetWindowLong ; otherwise Id is set to GetWindowWord.

Definition at line 351 of file window.h.

◆ Menu

TResId owl::TWindowAttr::Menu

Contains the resource ID for the menu associated with this window.

If no menu exists, Menu is 0.

Definition at line 346 of file window.h.

◆ Param

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.

Definition at line 357 of file window.h.

◆ Style

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 border
  • WS_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.

Definition at line 331 of file window.h.

◆ W

int owl::TWindowAttr::W

width of the window

Definition at line 341 of file window.h.

◆ X

int owl::TWindowAttr::X

horizontal position of top left corenr of the window

Definition at line 339 of file window.h.

◆ Y

int owl::TWindowAttr::Y

vertical position of top left corenr of the window

Definition at line 340 of file window.h.


The documentation for this struct was generated from the following file: