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

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
 
M

Mattias Sjögren

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top