Example #1
0
 private IntPtr _HandleNCRButtonUp(WM uMsg, IntPtr wParam, IntPtr lParam, out bool handled)
 {
     if (2 == wParam.ToInt32())
     {
         SystemCommands.ShowSystemMenuPhysicalCoordinates(this._window, new Point((double)Utility.GET_X_LPARAM(lParam), (double)Utility.GET_Y_LPARAM(lParam)));
     }
     handled = false;
     return(IntPtr.Zero);
 }
Example #2
0
 public static void ShowSystemMenu(Window window, Point screenLocation)
 {
     Verify.IsNotNull <Window>(window, "window");
     SystemCommands.ShowSystemMenuPhysicalCoordinates(window, DpiHelper.LogicalPixelsToDevice(screenLocation));
 }