CFrameWnd::Create

Call this member function to initialize the frame window's class name and window name and register default values for its style, parent, and associated menu.

You construct a CFrameWnd object in two steps. First, you invoke the constructor, which constructs the CFrameWnd object, then you call Create, which creates the Windows frame window and attaches it to the CFrameWnd object.

Syntax

BOOL Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle = WS_OVERLAPPEDWINDOW, const RECT& rect = rectDefault, CWnd* pParentWnd = NULL, LPCTSTR lpszMenuName = NULL, DWORD dwExStyle = 0, CCreateContext* pContext = NULL );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CFrameWnd Overview, CFrameWnd Member Functions, Frame Windows and Splitter Windows, CFrameWnd::CFrameWnd, CFrameWnd::LoadFrame, CCreateContext, CWnd::Create, CWnd::PreCreateWindow