15,980
社区成员




int nFullWidth=GetSystemMetrics(SM_CXSCREEN);
int nFullHeight=GetSystemMetrics(SM_CYSCREEN);
MoveWindow(0,0,nFullWidth, nFullHeight);//将当前窗口全屏幕显示;
m_wndToolBar.ShowWindow(SW_HIDE);//隐藏工具栏
m_wndStatusBar.ShowWindow(SW_HIDE);//隐藏状态栏
//隐藏菜单栏
SetMenu(NULL);
// 去除主窗口的标题
LONG style=::GetWindowLong(m_hWnd,GWL_STYLE);
style&=~WS_CAPTION;
::SetWindowLong(m_hWnd,GWL_STYLE,style);
//得到当前系统的分辨率
int nFullWidth=GetSystemMetrics(SM_CXSCREEN);
int nFullHeight=GetSystemMetrics(SM_CYSCREEN);
// 全屏显示
SetWindowPos(NULL,-4,-4,screenx+8,screeny+8,SWP_NOZORDER);