When creating a window using CreateWindow(...)
, which requires the window width and height, I have to enter the values 656 and 516, instead of 640 and 480, so as to account for the windows border.
I'm wondering if there is a way to create a window based only on the portion of the window not including the border, especially considering that if different versions of windows have different size borders, than the program might be displayed differently when I run it on said different versions
(ie: using 640 - object.width will place the object not quite on the edge of the screen if the user's version of windows has different sized borders).
So is there a way to create a window based only on the portion of the screen relevant to the program, or at the vary least a function along the lines of GetVericalBorder()
/GetHorizontalBorder()
so that I use these in CreateWindow()
's parameters instead of arbitrary and vague values like 656 and 516?