Partager via


CFrameWndEx::LoadFrame

This method is called after construction to create the frame window and load its resources.

virtual BOOL LoadFrame(
   UINT nIDResource,
   DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE,
   CWnd* pParentWnd = NULL,
   CCreateContext* pContext = NULL
);

Parameters

  • [in] nIDResource
    The resource ID that is used to load all frame resources.

  • [in] dwDefaultStyle
    The default frame window style.

  • [in] pParentWnd
    Pointer to the parent window of the frame. 

  • [in] pContext
    Pointer to a CCreateContext Structure class that is used by the framework during application creation.

Return Value

TRUE if the method was successful; otherwise, FALSE.

Requirements

Header: afxframewndex.h

See Also

Reference

CFrameWndEx Class

Hierarchy Chart