Results 1 to 3 of 3

Thread: Control Position

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Question Control Position

    Hi and thanks for reading.

    How can I determine the position (coordinates) of a control on a form? I need the number of pixels from the left edge, from the top edge, etc. When I use RECT to get the rectangle of the control, it always says that left = 0. How do I get this value?

    Thanks in advance,

    OneSource

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

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Thanks ...

    parksie.

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