方法一: 通过重载CreateWindow实现。 在PreCreateWindow中加代码: BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { if( !CFrameWnd::PreCreateWindow(cs) ) return FALSE; // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs //全屏方法一:重载createwindow //修改主窗风格 cs.style &= ~FWS_ADDTOTITLE; //去除标题条中文档名 cs.style &= ~WS_THICKFRAME; //去除可改变大小的边框 cs.style |= WS_DLGFRAME; //增加不能改变大小的边框 //确定主窗的大小和初始位置 int cxScreen = GetSystemMetrics(SM_CXSCREEN); //获得屏幕宽 int cyScreen = GetSystemMetrics(SM_CYSCREEN); //获得屏幕高 cs.x = 0; cs.y = 0; cs.cx = cxScreen; cs.cy = cyScreen; //return CMDIFrameWnd::PreCreateWindow(cs); return TRUE; } 方法二: 通过窗口跟屏蔽的加加减减——麻烦点...(不推荐~~哈哈~~): 在创建窗口的时候添加进去就可以了。代码 GetWindowPlacement(&prePlacement); CRect m_RectOfCurrentWindow, m_RectOfClient; GetWindowRect(&m_RectOfCurrentWindow); RepositionBars(0, 0xFFFF, AFX_IDW_PANE_FIRST, reposQuery, &m_RectOfClient); ClientToScreen(&m_RectOfClient); int nFullWidth = GetSystemMetrics(SM_CXSCREEN); int nFullHeight = GetSystemMetrics(SM_CYSCREEN); m_FSRect.left = m_RectOfCurrentWindow.left - m_RectOfClient.left; m_FSRect.top = m_RectOfCurrentWindow.top - m_RectOfClient.top + 70; m_FSRect.right = nFullWidth;//m_RectOfCurrentWindow.right - m_RectOfClient.right + nFullWidth; m_FSRect.bottom = nFullHeight;//m_RectOfCurrentWindow.bottom - m_RectOfClient.bottom + nFullHeight; m_bFullScreen = TRUE; MoveWindow(&m_FSRect, TRUE);