Reputation: 470
We can get the screen size using the following MFC code;
GetWindowRect(GetDesktopWindow(), (CRect)rect);
And we can change the screen scale using the windows Settings --> System --> Display --> Scale and layout --> "Change the size of text, apps, and other items" . This ComboBox includes 100%(Recommended), 125% 175% etc.
When I changed to 125% or 175%, I cannot get the correct screenshot. The sceenshot will be cutted.
How can i get that screen scaling value, or how can i get the correct screenshot at all the time?
Upvotes: 0
Views: 891
Reputation: 51894
Perhaps this is due to DPI virtualization which normalizes coordinates by default so that apps don't need to be aware of scaling.
This can be avoided by:
Upvotes: 2