Fixed the context menu positioning as well, following the previous fix to multimonitor setups.

This commit is contained in:
Paul Werelds 2010-10-04 16:56:42 +00:00
parent 718a8728ee
commit 1bbe76aa37

View File

@ -140,8 +140,9 @@ namespace OpenHardwareMonitor.GUI {
case WM_NCRBUTTONUP: {
if (contextMenu != null)
ShowContextMenu(new Point(
(int)((uint)message.LParam & 0xFFFF),
(int)(((uint)message.LParam >> 16) & 0xFFFF)));
Macros.GET_X_LPARAM(message.LParam),
Macros.GET_Y_LPARAM(message.LParam)
));
message.Result = IntPtr.Zero;
} break;
case WM_WINDOWPOSCHANGING: {