实现桌面全屏窗体

 

   //实现桌面全屏窗体
   LONG style = GetWindowLong(hWnd,GWL_STYLE);
   style &= ~WS_CAPTION & ~ WS_SIZEBOX;
   SetWindowLong(hWnd,GWL_STYLE,style);

   //如果要求窗体TopMost则参照MeetingSignIn模块窗体
   int screenX = GetSystemMetrics(SM_CXSCREEN);
   int screenY = GetSystemMetrics(SM_CYSCREEN);
   SetWindowPos(hWnd,HWND_BOTTOM,0,0,screenX,screenY,SWP_NOZORDER);

你可能感兴趣的:(实现桌面全屏窗体)