Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtTreeCtrl::OnTreeItemContextMenu() - point is wrong Collapse All
Subject Author Date
Alastair Watts Sep 28, 2011 - 2:43 AM

The point value is not where you click.


 

Technical Support Sep 28, 2011 - 3:18 AM

The point value is in screen coordinates because WM_CONTEXTMENU message is receiving it in the screen coordinate system and APIs that displays menus also require screen coordinates. Please use the ScreenToClient() API for conversion.