-1
#include <windows.h>

int main()
{
    HDC Window = GetWindowDC(FindWindow(NULL,"Window Example Title"));


    return 0;
}

How could I get the resolution of a window, such as this?

amsterdamn
  • 33
  • 4

1 Answers1

2

Presumably you mean the available graphics area, which in Windows is called the client area.

You can use the GetClientRect function to find its current size.

There is a corresponding GetWindowRect for the window itself.

Cheers and hth. - Alf
  • 142,714
  • 15
  • 209
  • 331