[MFC] SDI 에서 메뉴 전체 없애기

SDI 초기 생성시 원래 있던...

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
     if( !CFrameWnd::PreCreateWindow(cs) )
          return FALSE;
     // TODO: Modify the Window class or styles here by modifying
     //  the CREATESTRUCT cs
     return TRUE;
}

를...

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
     if(cs.hMenu != NULL)
     {
          ::DestroyMenu(cs.hMenu);
          cs.hMenu = NULL;
     }
     return CFrameWnd::PreCreateWindow(cs);
}

출처 : http://lafirr.tistory.com/7

by 제피로스 | 2008/06/12 00:19 | 트랙백 | 덧글(0)

◀ 이전 페이지          다음 페이지 ▶