Click to See Complete Forum and Search --> : Mouse position and NM_RCLICK


-=SKULK=-
June 1st, 1999, 11:44 AM
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=-

June 1st, 1999, 11:50 AM
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
);