Hi
Does anyone know how to get the mouse position (CPoint) when pressing the right mouse button in a TreeView (NM_RCLICK)?
I need that for checking the item rect, selecting items and displaying context menus...
thanx for help in advance
--
-=SKULK=-
Printable View
Hi
Does anyone know how to get the mouse position (CPoint) when pressing the right mouse button in a TreeView (NM_RCLICK)?
I need that for checking the item rect, selecting items and displaying context menus...
thanx for help in advance
--
-=SKULK=-
1, use
BOOL GetCursorPos(
LPPOINT lpPoint // address of structure for cursor position
);
2,then
BOOL ScreenToClient(
HWND hWnd, // window handle for source coordinates
LPPOINT lpPoint // address of structure containing coordinates
);