i have this routine to get the active window, that may have multiple buttons at various places on the parent window.
when they user click on a button then i am calling a dll that currently tries to center itself on the parentwindow BUT i am needing to know if it is possible to get the rectangle coordinates of the button that actually got pushed.
here is my current lines for gathering the window rectangle.
ParentWindowHandle := GetActiveWindow;
GetClientRect(ParentWindowHandle, Rect);
is there a way to determine the button that was pushed and it location relative to screen so i can popup my control where the button is located and not in the center?