VB6 How to get the absolute position of a control?
Posted on 2008-10-17
I need to find the absolute position of a control within a VB6 application. (Absolute as in 0,0 = top,left of the Windows desktop).
I understand that VB.NET has a .PointToScreen method for doing this (I don't have .NET so I'm not sure).
The application is MDI-based and the controls may be in containers with different ScaleModes. Is there an API where you can pass the hWnd of a control and get back the absolute position?