|
-
Aug 5th, 2002, 04:41 PM
#1
Thread Starter
Frenzied Member
scalewidth, scaleheight, etc.
What is the equivalent code in C++ to get the scalewidth, scaleheight, scaleleft, and scaletop of a dialog like in VB?
Last edited by wey97; Nov 10th, 2004 at 10:51 AM.
-
Aug 6th, 2002, 11:33 AM
#2
Monday Morning Lunatic
There's no concept of scale* in Windows, it's just part of VB...use GetWindowRect(hWnd, ptr_to_RECT_structure) which will give you the window's bounding rectangle.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 6th, 2002, 04:36 PM
#3
Frenzied Member
Would probably want to use GetClientRect, since GetWindowRect returns the size fo the entire window, including borders and titlebar.
Z.
-
Aug 6th, 2002, 05:12 PM
#4
Thread Starter
Frenzied Member
Yes, GetClientRect works better.
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
|