This method creates a window.
At a Glance
Header file: | Atlwin.h |
Windows CE versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
Syntax
HWND Create(HWND hWndParent, RECT& rcPos,
LPCTSTR szWindowName = NULL,
DWORD dwStyle = WS_CHILD | WS_VISIBLE,
DWORD dwExStyle = 0, UINT nID = 0 );
Remarks
Windows CE does not support stand alone menu bars, so the nID parameter must be set to zero, unless you’re using it as a child-window identifier.
Windows CE supports the following two new extended window styles.
WS_EX_NOACTIVATE
A top-level window created with this style cannot be activated. If a child window has this style, tapping it will not cause its top-level parent to be activated. A window that has this style will receive stylus events, but neither it nor its child windows can get the focus.
WS_EX_NOANIMATION
A window created with this style does not show animated exploding and imploding rectangles, and does not have a button on the taskbar.
Windows CE does not support the following dwExStyle flags:
WS_EX_ACCEPTFILES | WS_EX_LEFTSCROLLBAR |
WS_EX_LEFT | WS_EX_MDICHILD |
WS_EX_LTRREADING | WS_EX_PALETTEWINDOW |
WS_EX_NOPARENTNOTIFY | WS_EX_RIGHTSCROLLBAR |
WS_EX_RIGHT | WS_EX_TOOLWINDOW |
WS_EX_RTLREADING | WS_EX_TOPMOST |
WS_EX_APPWINDOW | WS_EX_TRANSPARENT |
Windows CE does not support the following dwStyle flags:
WS_CHILDWINDOW | WS_ICONIC |
WS_MAXIMIZE | WS_MAXIMIZEBOX |
WS_MINIMIZE | WS_MINIMIZEBOX |
WS_OVERLAPPEDWINDOW | WS_POPUPWINDOW |
WS_SIZEBOX | WS_THICKFRAME |
WS_TILED | WS_TILEDWINDOW |
All windows in Windows CE implicitly have the WS_CLIPSIBLINGS and WS_CLIPCHILDREN styles.
For control styles that Windows CE does not support, see the global function CreateWindow.