Solved

finding the mouse position ??

Posted on 2000-05-10
1
183 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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
Get filename and folder into excel 7 87
CRON statement to run every 3 minutes except on Monday morning 12am to 2am 7 121
FizzBuzz challenge 9 87
MaxSpan challenge 9 138
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…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

737 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