CMFCRibbonBar::LoadFromResource
TOC
Collapse the table of content
Expand the table of content

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
);

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.

TRUE if load succeeds; otherwise FALSE.

Requirements

Header: afxribbonbar.h

Show:
© 2016 Microsoft