Example #1
0
 private void ToggleManipulateWindow(KeyStates inKeyStates)
 {
     /* None -> Down, Down -> None : 改變可操縱視窗狀態並保存目前狀態
      * None -> None, Down -> Down : 不做任何事
      */
     if (inKeyStates != gKeyStates) // 狀態改變則致能
     {
         canManipulateWindow = (canManipulateWindow) ? false : true;
         WindowsServices.SetWindowExTransparent(hwnd);
         gKeyStates = inKeyStates;
     }
 }
Example #2
0
 protected override void OnSourceInitialized(EventArgs e)
 {
     base.OnSourceInitialized(e);
     hwnd = new WindowInteropHelper(this).Handle;
     WindowsServices.SetOriStyle(hwnd);
 }