Menu

#9 Allow custom initialization of frame menu

Future Release
open
nobody
Enhancement (8)
5
2011-12-10
2011-12-10
Ivan
No

My implementation (over 7.3 release):

on frame.h:

class CFrame:public CWnd
{
...
virtual void CFrame::SetupMenu();
...
inline void CFrame::SetupMenu()
{
SetFrameMenu(IDW_MAIN);
}
...
inline void CFrame::OnCreate()
{
...
// Setup the menu
// SetFrameMenu(IDW_MAIN);
SetupMenu();
m_pMenuMetrics = new CMenuMetrics(this);
...
}
...
};

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.