Re:how to hide the main menu of SDI Application?
"Bryan" <
kfc@hotmail.com>wrote in message
Quote
I mean just hide, but not destroy it, anyone can help?
Bryan,
This is just the first thing I tried, but it seems to work...
VOID CMainFrame::OnShowHideMenu(VOID)
{
if (m_hWnd && m_hMenuDefault && IsWindow(m_hWnd) &&
IsMenu(m_hMenuDefault))
{
if (::SetMenu(m_hWnd, ::GetMenu(m_hWnd) ? NULL :
m_hMenuDefault))
DrawMenuBar();
}
}
...where in my case OnShowHideMenu is an accelerator handler, but I suppose
you have your own scheme in mind.
--
Jeff Partch [VC++ MVP]
-