Esempio n. 1
0
 private void UpdateClipRegion(IntPtr hWnd, WINDOWPLACEMENT placement, ClipRegionChangeType changeType)
 {
     if (placement.showCmd == ShowWindowOption.SW_MAXIMIZE)
     {
         ClipMaximizedRegion(hWnd);
     }
     else if (changeType != ClipRegionChangeType.FromSize &&
              changeType != ClipRegionChangeType.FromPropertyChange &&
              _lastShowCmd == placement.showCmd)
     {
         // do nothing
     }
     else
     {
         ClearClipRegion(hWnd);
     }
     _lastShowCmd = placement.showCmd;
 }
Esempio n. 2
0
 public static extern bool ShowWindow(IntPtr hWnd, ShowWindowOption nCmdShow);
Esempio n. 3
0
 public static extern bool ShowWindow(IntPtr hWnd, ShowWindowOption nCmdShow);
Esempio n. 4
0
 private static extern bool ShowWindow(IntPtr hWnd, ShowWindowOption option);