How to retrieve a Control (if any) under the mouse at any time ?

  • Thread starter Thread starter Pascal SIMON
  • Start date Start date
P

Pascal SIMON

Hi

I think i've read something about it but i don't remember where, so i ask it
again (sorry)...

I want to retrieve the Control/Form under the Mouse at any time.
I know i can convert the mouse position to a Point using
"get_MousePosition()". But after that, i'm locked.
In fact, i'm looking for the equivalent of "::WindowFromPoint()" from the
SDK, but in managed C++.
I'm not a guru in .NET, and I miss all the global function of SDK such as
this one (i think there's something i haven't understood yet in .NET, and
that's getting on my nerves).

Thanx in advance

Pascal SIMON
 
Pascal,
In fact, i'm looking for the equivalent of "::WindowFromPoint()" from the
SDK, but in managed C++.

See Control::PointToClient and Control::GetChildAtPoint



Mattias
 
Back
Top