OnNotify

I am catching a window event in an OnNotify
function.

the event is NM_DBLCLK.

now is there a way I can get the mouse cordinates
in a CPoint while doing that ?

I know I can do it on WindowProc func by casting the lParam but I can't find where is the CPoint hiding (or maybe it doesn't exists ?) when I am using OnNotify to get the Events.

any help will be highly appreciated

thanks
Ran.
dancing_crowAsked:
Who is Participating?
 
mblatConnect With a Mentor Commented:
Just wondering: would GetMessagePos be of any helps here?
0
 
fl0ydCommented:
Unless it's a listview or a status bar you cannot get this information. In those cases you will have to cast the pNotifyStruct to a NMITEMACTIVATE* or NMMOUSE* respectively.
0
 
dancing_crowAuthor Commented:
Hi there mblat !

the GetMessagePos func did the job for me : )
I was starting to think that it is a lost cause
so thanks a lot !

0
All Courses

From novice to tech pro — start learning today.