wince 下的APP全屏,写在这里避免以后自己忘了到处乱找。。。
简单粗暴的全屏(无标题栏,无任务栏)
int nFullWidth = GetSystemMetrics(SM_CXSCREEN);
int nFullHeight = GetSystemMetrics(SM_CYSCREEN);
::SetWindowPos(hWnd,HWND_TOPMOST,0,0,nFullWidth,nFullHeight,WS_EX_TOPMOST);
全屏有任务栏
CRect m_FullScreenRect;
int nFullWidth=GetSystemMetrics(SM_CXSCREEN);
int nFullHeight=GetSystemMetrics(SM_CYSCREEN);
m_FullScreenRect.left = 0;
m_FullScreenRect.top = 0;
m_FullScreenRect.right = m_FullScreenRect.left + nFullWidth;
m_FullScreenRect.bottom = m_FullScreenRect.top + nFullHeight;
MoveWindow(0,0,m_FullScreenRect.Width(),m_FullScreenRect.Height(),1);
去掉标题栏和光标
ModifyStyle(WS_CAPTION, NULL, SWP_DRAWFRAME );
ShowCursor(FALSE);