方法一:

CRect rt;
 int screenW;
 int screenH;
 CWnd* pDeskTop = this->GetDesktopWindow();
 pDeskTop->GetClientRect(rt);
 screenW = rt.Width();
 screenH = rt.Height();

方法二:

int x = GetSystemMetrics(SM_CXFULLSCREEN);

int y = GetSystemMetrics(SM_CYFULLSCREEN);

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-07-03
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2021-11-01
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
相关资源
相似解决方案