Link to home
Start Free TrialLog in
Avatar of juan_herbst
juan_herbst

asked on

Removing a menu in an SDI (MFC .Net)

I am trying to remove a menu in a SDI application. I have done the following:

BOOL CXXXSApp::InitInstance()
{
.
.
.
.
.
        m_pMainWnd->ModifyStyle(WS_CAPTION ,SWP_SHOWWINDOW);
        m_pMainWnd->SetMenu(NULL);
}

The menu dissapears but when I call GetClientRect() from a view the size of the menu is excluded from the rect at the bottom of the view.
ASKER CERTIFIED SOLUTION
Avatar of Roshan Davis
Roshan Davis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial