Thread: Get Window X and Y?

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    57

    Get Window X and Y?

    There is some function wich return the X and Y position of an button, edit, or any other control? Thanks

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    If you have the handle to the window, use GetWindowRect. This fills a RECT structure with the coordinates of the window relative to the top left corner of the screen.

Popular pages Recent additions subscribe to a feed