Class | Control Data | Explanation |
---|---|---|
WC_BUTTON | BTNCDATA | There are many different types of buttons, including some which have their own class name. |
WC_CIRCULARSLIDER | N/A | This was adopted from MMOS2, and looks like a volume control. |
WC_COMBOBOX | COMBOCDATA | Entryfield/list box combination. |
WC_CONTAINER | CNRINFO | Container control, ie. folder-like control. |
WC_ENTRYFIELD | ENTRYFDATA | Entryfield. This needs subclassing if you need to have a numerical control only. |
WC_FRAME | FRAMECDATA | Window frame control. |
WC_LISTBOX | LBOXINFO | List box control. This needs filling at some point. |
WC_MENU | N/A | Menu control. Can be either an action bar, or a pop-up menu. |
WC_MLE | MLECTLDATA | Multi-Line Edit control. Can be used for simple editors. |
WC_NOTEBOOK | BOOKPAGEINFO | Notebook control. This is the control in which the pages are created, not the frame. |
WC_SCROLLBAR | SBCDATA | Horizontal or vertical scroll bar. This needs sizing, and should not be used where a slider is more appropriate. |
WC_SLIDER | SLDCDATA | Horizontal or vertical slider. |
WC_SPINBUTTON | SPBCDATA | Spin button control. You will need to fill it. |
WC_STATIC | N/A | A static display of either text or bitmap. |
WC_TITLEBAR | N/A | Title bar. |
WC_VALUESET | VSCDATA | Value set control. You will need to supply some bitmap for this. |
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_MAXIMIZED | Create this window maximized. Used only with frame windows. |
WS_MINIMIZED | Create this window minimized. Used only with frame windows. |
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. |
PMERR_INVALID_HWND | 0x1001 |
PMERR_INVALID_FLAG | 0x1019 |
This API sends WM_CREATE and WM_ADJUSTWINDOWPOS messages during window creation. The size can be set during the WM_CREATE message. It is also common to follow the WinCreateWindow call (with the window not set to visible) with a WinSetWindowPos call, during which size and position are set.
If this API is used to create a menu (WC_MENU), then pCtrlData should point to the menu template.
WM_CREATE is the first message a newly created window will receive, but the
window is not yet visible when this message is received, and may have no size
yet.
Relevant Structures
Control Data structures include the following:
Last modified June 15/1996
Please send all errors, comments, and suggestions to:
timur@vnet.ibm.com
The OS/2 API Project |
WinCreateWindow |