Solved

finding the mouse position ??

Posted on 2000-05-10
1
171 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 video discusses moving either the default database or any database to a new volume.

747 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

9 Experts available now in Live!

Get 1:1 Help Now