Hi,
I have an activex control that has many windows in it. When I call its hwnd method it just gives back the main 'wrapper' window. In VB I can get hold of the window I want by getting a point using GetCursorPos (API call) and passing the point to WindowFromPoint (API Call).
I see this article from MSDN that maps API calls to dot net equivilents...
It says the equivilent to WindowFromPoint is System.Windows.Forms.Form.GetChildAtPoint
But this returns the control? Not the window I'm interested in. Atleast I think it would? I am new to API and dotnet so please correct me if I have the wrong idea. But does anyone know how I can get the actual window inside an activex control the user clicks on?
Any help much appreciated,
Rob
I have an activex control that has many windows in it. When I call its hwnd method it just gives back the main 'wrapper' window. In VB I can get hold of the window I want by getting a point using GetCursorPos (API call) and passing the point to WindowFromPoint (API Call).
I see this article from MSDN that maps API calls to dot net equivilents...
It says the equivilent to WindowFromPoint is System.Windows.Forms.Form.GetChildAtPoint
But this returns the control? Not the window I'm interested in. Atleast I think it would? I am new to API and dotnet so please correct me if I have the wrong idea. But does anyone know how I can get the actual window inside an activex control the user clicks on?
Any help much appreciated,
Rob