|
-
March 12th, 2003, 03:58 PM
#1
Window size and documentation conflict
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|