窗口全屏代码

int nScreenX = GetSystemMetrics( SM_CXSCREEN );
int nScreenY = GetSystemMetrics( SM_CYSCREEN );

SetWindowPos( &CWnd::wndTop, 0, 0, nScreenX, nScreenY, SWP_SHOWWINDOW | SWP_NOMOVE );

 

你可能感兴趣的:(窗口全屏代码)