When I call GetClientRect() it's not even returning half the size that my client's area fills. Why is this? My screen resolution is set to 1600x1200 and I am creating my window with WS_MAXIMIZED style set. Then when I call GetClientRect() my values are as follows:
Left: 0 Right: 634
Top: 0 Bottom: 448
(tested using a MessageBox to display the return values)
Am I just using the wrong function call? Or is this call just not working for some reason? Also I am creating my child window using the following values:
x=0;
y=0;
nwidth=rect.right-rect.left;
nheight=rect.bottom-rect.top;
So this is not even covering half of my window (and yes I will be adding support for window size changes). Any help would be greatly appreciated.
Thanks
Tyouk



LinkBack URL
About LinkBacks


