Call this member function to create an overlapped, pop-up, or child window with the extended style specified in dwExStyle.
BOOL CreateEx ( DWORD dwExStyle, LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hwndParent, HMENU nIDorHMenu, LPVOID lpParam = 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.
Windows CE versions 2.0 and later support two new exetended window styles.
The WS_EX_NOACTIVATE style creates a top level window that can't be activated. If a child window has this style, tapping it won't 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.
The WS_EX_NOANIMATION style creates a window that doesn't show animated exploding and imploding rectangles, and doesn't have a button on the taskbar.
For a list of the window styles that cannot be specified in the dwStyle parameter, see CWnd::Create.
Windows CE does not support the following flags for the dwExStyle parameter.
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 versions prior to 2.0 do not support the WS_EX_TOPMOST style.
For information on supported window styles and extended window styles, see Window Styles.
CWnd Overview, CWnd Member Functions, Window Class Categories, CWnd::Create