Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

OnNotify

Posted on 2002-07-21
3
Medium Priority
?
255 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 120 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Suggested Courses

971 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