CWnd::PreCreateWindow now assigns the hMenu member of its CREATESTRUCT parameter to the this pointer if the menu is NULL and the style contains WS_CHILD. For proper functionality, ensure that your dialog control has an ID that is not NULL.
This change fixes a crash in managed/native interop scenarios. A TRACE statement in CWnd::Create alerts the developer of the problem.
The default extended window style is WS_EX_LEFT. The default window style is WS_OVERLAPPED.
Use the AfxRegisterWndClass function to register window classes. User defined window classes are available in the module where they are registered.
Dimensions for child windows are relative to the top-left corner of the client area of the parent window. Dimensions for top-level windows are relative to the top-left corner of the screen.
The CWnd::OnCreate method is called before the CreateEx method returns, and before the window becomes visible.