Пример #1
0
        // 改變可操縱視窗狀態並保存目前狀態,由按鍵狀態的改變來致能 (None -> Down or Down -> None)
        private void ToggleManipulateWindow(KeyStates inKeyStates)
        {
            if (inKeyStates != gKeyStates)
            {
                canManipulateWindow = !canManipulateWindow;

                WindowsServices.SetWindowExTransparent(hwnd);

                gKeyStates = inKeyStates;
            }
        }
Пример #2
0
 public void Init(IntPtr hwnd)
 {
     this.hwnd = hwnd;
     WindowsServices.SaveOriginStyle(hwnd);
 }