usein mainframe:  ShowControlBar(&m_wndToolBar, FALSE, FALSE); // hold toolbar;
  ShowControlBar(&m_wndStatusBar, FALSE, FALSE); // hold statusbar;
  ModifyStyle(WS_CAPTION,0); // hold Blue bar;
  ModifyStyle(WS_THICKFRAME,0); // Hide Border
  SetMenu(NULL); // hold menubar;
  ShowWindow(SW_MAXIMIZE); // Maxing the view;

解决方案 »

  1.   

    这是我用过的源代码,很好用
    加入Onini****()中:CRect m_FullScreenRect;
    CRect WinRect;
    GetWindowRect(&WinRect);
    CRect ClientRect;
    RepositionBars(0,0xffff,AFX_IDW_PANE_FIRST,reposQuery,&ClientRect);
    ClientToScreen(&ClientRect);
    int nFullWidth=GetSystemMetrics(SM_CXSCREEN);
    int nFullHeight=GetSystemMetrics(SM_CYSCREEN);
        m_FullScreenRect.left=WinRect.left-ClientRect.left;
        m_FullScreenRect.top=WinRect.top-ClientRect.top;
    m_FullScreenRect.right=WinRect.right-ClientRect.right+nFullWidth;
    m_FullScreenRect.bottom=WinRect.bottom-ClientRect.bottom+nFullHeight;
    BOOL m_bFullScreen=TRUE;
    WINDOWPLACEMENT wndpl;
    wndpl.length=sizeof(WINDOWPLACEMENT);
    wndpl.flags=0;
    wndpl.showCmd=SW_SHOWNORMAL;
    wndpl.rcNormalPosition=m_FullScreenRect;
    SetWindowPlacement(&wndpl);