CWnd::CreateEx

This method creates an overlapped, pop-up, or child window with the extended style specified in dwExStyle.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

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 );

BOOL CreateEx(DWORD dwExStyle, LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, LPVOID lpParam = NULL);

Remarks

Only versions 2.10 and later of the MFC for Windows CE supports the second prototype listed in the Syntax section

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 cannot be activated. If a child window has this style, tapping it does 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.

The WS_EX_NOANIMATION style creates a window that does not show animated exploding and imploding rectangles, and does not 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 about supported window styles and extended window styles, see the Windows and Control Styles chapter of the Windows CE SDK Guide.

See Also

CWnd::Create