方法一

RECT rc;
::GetWindowRect(GetDesktopWindow(), &rc);

这个取出来是动态的,例如rotate the sreen,值会变化。

方法二

const long nScreenWidth = ::GetSystemMetrics(SM_CXSCREEN);
const long nScreenHeight = ::GetSystemMetrics(SM_CYSCREEN);

这是静态的。

相关文章:

  • 2021-12-13
  • 2022-02-03
  • 2021-09-16
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案