Creates a window based on a new window class.
HWND Create( HWND hWndParent, _U_RECT rect = NULL, LPCTSTR szWindowName = NULL, DWORD dwStyle = 0, DWORD dwExStyle = 0, _U_MENUorID MenuOrID = 0U, LPVOID lpCreateParam = NULL );
[in] The handle to the parent or owner window.
[in] A RECT structure specifying the position of the window. The RECT can be passed by pointer or by reference.
[in] Specifies the name of the window. The default value is NULL.
[in] The style of the window. This value is combined with the style provided by the traits class for the window. The default value gives the traits class full control over the style. For a list of possible values, see CreateWindow in the Platform SDK.
[in] The extended window style. This value is combined with the style provided by the traits class for the window. The default value gives the traits class full control over the style. For a list of possible values, see CreateWindowEx in the Platform SDK.
[in] For a child window, the window identifier. For a top-level window, a menu handle for the window. The default value is 0U.
[in] A pointer to window-creation data. For a full description, see the description for the final parameter to CreateWindowEx.
Create first registers the window class if it has not yet been registered. The newly created window is automatically attached to the CWindowImpl object.
Do not call Create if you have already called SubclassWindow.
To use a window class that is based on an existing window class, derive your class from CWindowImpl and include the DECLARE_WND_SUPERCLASS macro. The existing window class's window procedure is saved in m_pfnSuperWindowProc. For more information, see the CWindowImpl overview.
If 0 is used as the value for the MenuOrID parameter, it must be specified as 0U (the default value) to avoid a compiler error.