CFrameWnd::LoadFrame

Call this member function to load the Windows frame window and associated resources and attach the frame window to the CFrameWnd object.

You construct a CFrameWnd object in two steps. First, you invoke the constructor, which constructs the CFrameWnd object, and then you call LoadFrame.

Syntax

virtual BOOL LoadFrame( UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, 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, CDocTemplate, CFrameWnd::Create, CFrameWnd::CFrameWnd, CWnd::PreCreateWindow