CMFCMenuBar::SetMenuButtonRTC
Sets the runtime class information that the framework uses when the user creates menu buttons.
void SetMenuButtonRTC(
CRuntimeClass* pMenuButtonRTC
);
Parameters
- [in] pMenuButtonRTC
The CRuntimeClass information for a class derived from the CMFCMenuButton Class.
Remarks
When a user adds new buttons to the menu bar, the framework creates the buttons dynamically. By default, it creates CMFCMenuButton objects. Override this method to change the type of button objects that the framework creates.
Requirements
Header: afxmenubar.h