GetWindowRect on Windows 10

  • Thread starter Thread starter Lubomir1
  • Start date Start date
L

Lubomir1

Guest
I need to discover exactly if any part of the main frame in my App (CFrameWndEx) is loosing visible area (virtual screen).
I tried to use API function GetWindowRect for the main frame.
I got (for NOMAXIMIZED window) litle bit confusing results:

A measure GetWindowRect versus screenshot:
W7 = rectangles are the same,
W8 = rectangles are the same,
W8.1 = rectangles are the same,
W10 = RECTANGLES ARE DIFFERENT, the wide of real raster picture is smaller by 16 px and the high is smaller by 7 px.
I tried it on a few PCs with various grafic cards, I obtained always the same result.

My question is this:
Which function can I use for a measure of the main frame, when result of Windows API GetWindowRect is (for W10) invalid?

Thank you boys (and girls :-) for help and ideas.
Lubomir

Continue reading...
 
Back
Top