다음을 통해 공유


CMFCRibbonBar::LoadFromResource

Overloaded. Loads a Ribbon Bar from application resources.

virtual BOOL LoadFromResource(
   UINT uiXMLResID,
   LPCTSTR lpszResType = RT_RIBBON,
   HINSTANCE hInstance = NULL
);
virtual BOOL LoadFromResource(
   LPCTSTR lpszXMLResID,
   LPCTSTR lpszResType = RT_RIBBON,
   HINSTANCE hInstance = NULL
);

Parameters

  • uiXMLResID
    Specifies resource ID of XML string with Ribbon Bar information.

  • lpszResType
    Specifies type of the resource located at uiXMLResID.

  • hInstance
    Handle to the module whose executable file contains the resource. If hInstance is NULL, the system loads the resource from the module that was used to create the current process.

  • lpszXMLResID
    Specifies resource ID (in string form) with Ribbon Bar information.

Return Value

TRUE if load succeeds; otherwise FALSE.

Requirements

Header: afxribbonbar.h

See Also

Reference

CMFCRibbonBar Class