There is some function wich return the X and Y position of an button, edit, or any other control? Thanks
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.
GameDev Guys HQ