如题,急用啊。

解决方案 »

  1.   

    参考:int cx, cy; 
        HDC dc = ::GetDC(NULL); 
        cx = GetDeviceCaps(dc,HORZRES) + GetSystemMetrics(SM_CXBORDER); 
        cy = GetDeviceCaps(dc,VERTRES) + GetSystemMetrics(SM_CYBORDER); 
        ::ReleaseDC(0,dc);     //去除标题和边框
        SetWindowLong(m_hWnd, GWL_STYLE,GetWindowLong(m_hWnd, GWL_STYLE) & 
        (~(WS_CAPTION | WS_BORDER)));     // 置对话框为最顶端并扩充到整个屏幕
        ::SetWindowPos(m_hWnd, HWND_TOPMOST, -(GetSystemMetrics(SM_CXBORDER)+2), 
            -(GetSystemMetrics(SM_CYBORDER)+2), cx+5,cy+5, SWP_NOZORDER);
      

  2.   

    在MainFrame的OnCreate里去掉工具条和状态栏的创建部分,并加上SetMenu(NULL);
    然后ShowWindow(SW_SHOWMAXIMIZED);
      

  3.   

    去掉标题栏
    /*m_pMainWnd->*/ModifyStyle(   WS_CAPTION   |   WS_SYSMENU   |   WS_THICKFRAME,   WS_DLGFRAME,   0   );   
    /*m_pMainWnd->*/SetWindowPos(   NULL,   0,   0,   0,   0,   SWP_NOMOVE   |   SWP_NOSIZE   |   SWP_NOZORDER   |   SWP_FRAMECHANGED   );