Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

finding the mouse position ??

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
somanchi6
Asked:
somanchi6
1 Solution
 
_mb_Commented:
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now