GetWindowRect(&m_rcMain);//restore the src screen's size; //delete the showing window's caption LONG style = GetWindowLong(m_hWnd,GWL_STYLE); style &=~WS_CAPTION; //set the window's show sytle SetWindowLong(m_hWnd,GWL_STYLE,style); //get the screen's pixel int screenX = GetSystemMetrics(SM_CXSCREEN); int screenY = GetSystemMetrics(SM_CYSCREEN); //show window SetWindowPos(NULL,0,0,screenX,screenY,SWP_NOZORDER);
int screenX = GetSystemMetrics(SM_CXSCREEN); int screenY = GetSystemMetrics(SM_CYSCREEN);要获取整个屏幕的大小阿
//delete the showing window's caption
LONG style = GetWindowLong(m_hWnd,GWL_STYLE);
style &=~WS_CAPTION;
//set the window's show sytle
SetWindowLong(m_hWnd,GWL_STYLE,style);
//get the screen's pixel
int screenX = GetSystemMetrics(SM_CXSCREEN);
int screenY = GetSystemMetrics(SM_CYSCREEN);
//show window
SetWindowPos(NULL,0,0,screenX,screenY,SWP_NOZORDER);
int screenY = GetSystemMetrics(SM_CYSCREEN);要获取整个屏幕的大小阿