VC++游戏 void show_window(HWND hWnd,int width,int height,int nCmdShow) { RECT rcl; SetRect(&rcl;,0,0,width,height); AdjustWindowRect( &rcl;, WS_SYSMENU | WS_CAPTION | WS_MINIMIZEBOX, // GetMenu( hWnd)!= NULL, 0 ); MoveWindow(hWnd, rcl.left+(GetSystemMetrics(SM_CXSCREEN)-width)/2,