Figuring out window ID under cursor...

I have an app with several Digital Meters on a dialog. I want to be able to track the mouse cursor when the user clicks on one (doesn't have any click events) and get its control command id. I want to do this w/o subclassing if possible. I'm now using the OnParentNotify event to process the click (and I'm translating to figure out double-clicks). Is this possible? Thanks in advance...
maknightAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
byangConnect With a Mentor Commented:
You should use WindowFromPoint/ChildWindowFromPoint API calls.
CWnd has them too.

0
 
maknightAuthor Commented:
That's IT!!! Thanks. Man, I don't see how I overlooked that in CWnd. I looked over that several times. Thanks, again...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.