Gyannea
March 12th, 2003, 02:58 PM
The three functions
CreateWindow()
GetClientRect()
GetWindowRect()
are somehwat in conflict with my documentation.
In CreateWindow() I specify the window position and size with
0,0,100,100.
Then I call
GetClientRect() and GetWindowRect(). I want to get the size of the window frames.
Heres what I get:
clientrect.left = 0
clientrect.top = 0
clientrect.right = 111
clientrect.bottom = 42
windowrect.left = 0
windowrect.top = 0
windowrect.right = 123
windowrect.bottom = 100
It seems that the CreateWindow() function 'width' value gives the width of the client area, not the window, whereas the 'height' value gives the height of the window and not the client.
Is this a known feature? That's not what my documentation says!
CreateWindow()
GetClientRect()
GetWindowRect()
are somehwat in conflict with my documentation.
In CreateWindow() I specify the window position and size with
0,0,100,100.
Then I call
GetClientRect() and GetWindowRect(). I want to get the size of the window frames.
Heres what I get:
clientrect.left = 0
clientrect.top = 0
clientrect.right = 111
clientrect.bottom = 42
windowrect.left = 0
windowrect.top = 0
windowrect.right = 123
windowrect.bottom = 100
It seems that the CreateWindow() function 'width' value gives the width of the client area, not the window, whereas the 'height' value gives the height of the window and not the client.
Is this a known feature? That's not what my documentation says!