Results 1 to 4 of 4

Thread: scalewidth, scaleheight, etc.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Resolved 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.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Would probably want to use GetClientRect, since GetWindowRect returns the size fo the entire window, including borders and titlebar.

    Z.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Thumbs up

    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
  •  



Click Here to Expand Forum to Full Width