Solved

finding the mouse position ??

Posted on 2000-05-10
1
180 Views
Last Modified: 2013-11-20
Hello,
How do we get the mouse position,
when the user performs a right click
on a CListCtrl Control in a dialog box.

We handle NM_RCLICK message.
which has
(NMHDR* pNMHDR, LRESULT* pResult)
as parameters.

So from these can we extract the
mouse position.
How do we do it.

Waiting for a reply
Subramanyam.
0
Comment
Question by:somanchi6
1 Comment
 
LVL 3

Accepted Solution

by:
_mb_ earned 20 total points
ID: 2799039
Get a pointer to the NMLISTVIEW structure:

NMLISTVIEW* pListView=(NMLISTVIEW*)pNMHDR;

The member pListView->ptAction is a POINT structure, that contains the mouse position.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 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