Solved

OnNotify

Posted on 2002-07-21
3
216 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Smart Camera scanning and reading information 3 114
pre4 challenge 19 104
Excel file not created as expected 7 79
Work with App store 7 71
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

820 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