FS_AUTOICON | System redraws icon for application. |
FS_BORDER | Window has thin border. |
FS_DLGBORDER | Window has dialog border. |
FS_MOUSEALIGN | Position is relative to mouse position. |
FS_NOBYTEALIGN | Moves are not aligned to nearest byte. Slower, but nicer. |
FS_NOMOVEWITHOWNER | Window will not move when owner does. |
FS_SCREENALIGN | Coordinates are relative to top left of screen. |
FS_SIZEBORDER | Window has normal resizable border. |
FS_SYSMODAL | System modal window. Usually not a good idea. |
FS_TASKLIST | Window will be added to tasklist. |
WS_ANIMATE | Enables WPS animation, unless user has disabled this feature. |
WS_CLIPCHILDREN | Window cannot draw on children. |
WS_CLIPSIBLINGS | Window cannot draw on siblings. |
WS_DISABLED | Creates window disabled. This might be desirable for filling list boxes, and so on. WinEnableWindow must be used later. |
WS_GROUP | Start a new group for dialog box purposes. This should not be used on every window in the group, only the first one. |
WS_PARENTCLIP | Window created with this style cannot draw outside their parents, but they CAN draw on their parent, so care sould be used. |
WS_SAVEBITS | PM will save the pixels underneath this window for when this window closes and moves away. This is faster, but uses more memory. With todays fast systems, if you are not concerned about higher RAM usage, this should be on. |
WS_SYNCPAINTS | WM_PAINT messages will be sent, rather than posted. |
WS_TABSTOP | Specifies that pressing tab in a dialog box will move the focus to this window. Otherwise it will be skipped. |
WS_VISIBLE | Without this style, the window will be created invisible, and will have to be displayed later with WinSetWindowPos or WinShowWindow. The window also has to have size to be displayed, but may come up underneath other windows. |
FCF_ACCELTABLE | Specifies that accelerator keys should be loaded from resource file. |
FCF_AUTOICON | PM automatically handles WM_PAINT messages while app is iconzied. |
FCF_BORDER | Creates window with thin border. |
FCF_DLGBORDER | Creates window with dialog-style fixed border. |
FCF_HIDEBUTTON | Adds hide button to frame. |
FCF_HIDEMAX | Adds hide and maximize buttons to frame |
FCF_HORZSCROLL | Adds horizontal scroll bar to client window. |
FCF_ICON | Uses an icon from resource file as app icon. |
FCF_MAXBUTTON | Adds maximize button to frame. |
FCF_MENU | Loads a menu from resource file. |
FCF_MINBUTTON | Adds minimize button to frame. |
FCF_MINMAX | Adds minimize and maximize buttons to frame. |
FCF_MOUSEALIGN | Application window is created relative to mouse position at the time of creation. |
FCF_NOBYTEALIGN | Does not force alignment window on an even byte, unlike VIO windows. |
FCF_NOMOVEWITHOWNER | Disables movement of window when owner moves. This is irrelevant with HWND_DESKTOP as owner. |
FCF_SCREENALIGN | Application window is created relative to the top left corner of screen. |
FCF_SHELLPOSITION | Application window is given automatic size and window position by PM upon creation. |
FCF_SIZEBORDER | Frame window is created with a sizable normal border. |
FCF_STANDARD | Creates window with a system menu, titlebar, minimize and maximize buttons, menu, sizable border, icon, accelerator keys, a default size and position, and an entry in the tasklist. In other words, this basically creates a whole, normal window. |
FCF_SYSMENU | Frame window is created with a system menu in top left corner. |
FCF_SYSMODAL | Window is created system modal, ie. other apps cannot get the focus. Usually, this option should not be used, except for critical messages. |
FCF_TASKLIST | Creates an entry in the window list for application. |
FCF_TITLEBAR | Creates frame window with a titlebar. |
FCF_VERTSCROLL | Creates a vertical scroll bar in client window. |
0x1001 | PMERR_INVALID_HWND |
0x100A | PMERR_RESOURCE_NOT_FOUND |
0x1019 | PMERR_INVALID_FLAG |
You can reach the sub-windows of the newly created frame window with the
following ids: FID_CLIENT, FID_HORZSCROLL, FID_MINMAX, FID_MENU,
FID_SYSMENU, FID_TITLEBAR, FID_VERTSCROLL.
Relevant Structures
Gotchas
The id used for the menu, icon, and accelerator table must be the same, if
they are loaded from templates in a resource file.
Sample Code
Last modified June 22/1996
Please send all errors, comments, and suggestions to:
timur@vnet.ibm.com
The OS/2 API Project |
WinCreateStdWindow |