Solved

OnNotify

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Separate into files by filename 12 67
centeredAverage challenge 8 123
abstract class with all non abstract mentods 6 72
Making an alias 7 54
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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

762 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

19 Experts available now in Live!

Get 1:1 Help Now