Call this member function to create a Windows child window and attach it to the CWnd object.
virtual BOOL Create ( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
All windows in Windows CE have the WS_CLIPSIBLINGS and WS_CLIPCHILDREN styles.
The dwStyle parameter can contain a combination of the window styles and control styles listed in the following topics:
Window Styles | List Box Styles |
Push Button Styles | Scroll Bar Styles |
Combo Box Styles | Dialog Box Styles |
Edit Control Styles | Static Control Styles |
Windows CE does not support the following flags for the dwStyle parameter.
Unsupported window styles:
WS_CHILDWINDOW | WS_ICONIC |
WS_MAXIMIZE | WS_MAXIMIZEBOX |
WS_MINIMIZE | WS_MINIMIZEBOX |
WS_OVERLAPPEDWINDOW | WS_POPUPWINDOW |
WS_SIZEBOX | WS_THICKFRAME |
WS_TILED | WS_TILEDWINDOW |
Unsupported dialog box styles:
DS_ABSALIGN | DS_NOFAILCREATE |
DS_CENTERMOUSE | DS_NOIDLEMSG |
DS_CONTEXTHELP | DS_SYSMODAL |
DS_FIXEDSYS |
Unsupported control styles:
Unsupported button styles | Unsupported scroll bar styles |
---|---|
BS_BITMAP | SBS_BOTTOMALIGN |
BS_ICON | SBS_RIGHTALIGN |
BS_LEFTTEXT | SBS_SIZEBOXBOTTOMRIGHTALIGN |
BS_MULTILINE | SBS_SIZEGRIP |
BS_PUSHBOX | |
BS_TEXT | Unsupported static control styles |
BS_USERBUTTON (Use BS_OWNERDRAW instead.) | SS_BLACKFRAME |
SS_BLACKRECT | |
Unsupported combo box styles | SS_ENHMETAFILE |
CBS_OWNERDRAWFIXED | SS_GRAYFRAME |
CBS_OWNERDRAWVARIABLE | SS_GRAYRECT |
CBS_SIMPLE | SS_METAPICT |
SS_OWNERDRAW | |
Unsupported list box styles | SS_RIGHTIMAGE |
LBS_NODATA | SS_SIMPLE |
LBS_OWNERDRAWFIXED | SS_WHITEFRAME |
LBS_OWNERDRAWVARIABLE | SS_WHITERECT |
LBS_STANDARD |
For information on supported window styles, see Window Styles.
CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::CWnd, CWnd::CreateEx