Solved

OnNotify

Posted on 2002-07-21
3
201 Views
Last Modified: 2013-11-20
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.
0
Comment
Question by:dancing_crow
3 Comments
 
LVL 8

Expert Comment

by:fl0yd
ID: 7167685
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
 
LVL 4

Accepted Solution

by:
mblat earned 30 total points
ID: 7167986
Just wondering: would GetMessagePos be of any helps here?
0
 

Author Comment

by:dancing_crow
ID: 7169064
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 29
ORA-01403: no data found 43 90
withoutTen challenge 14 100
"Black Box" Testing of Control System Software 2 25
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now