예제 #1
0
        /// <summary>
        /// Disable a window's minimize button.
        /// </summary>
        /// <param name="hWnd"></param>
        public static void DisableMinimizeButton(IntPtr hWnd)
        {
            var currentStyle = WinAPI.GetWindowLong(hWnd, -16);

            WinAPI.SetWindowLong(hWnd, -16, (currentStyle & ~0x20000));
        }
예제 #2
0
 /// <summary>
 /// Allow a user to click through a window.
 /// </summary>
 /// <param name="Handle">The handle to the window.</param>
 public static void EnableMouseTransparency(IntPtr hWnd)
 {
     WinAPI.SetWindowLong(hWnd, -20, Convert.ToInt32(WinAPI.GetWindowLong(hWnd, -20) | 0x00080000 | 0x00000020L));
 }
예제 #3
0
        /// <summary>
        /// Flip the layout of a window.
        /// </summary>
        /// <param name="hWnd">The handle to the window.</param>
        public static void FlipLeft(IntPtr hWnd)
        {
            var currentStyle = WinAPI.GetWindowLong(hWnd, -20);

            WinAPI.SetWindowLong(hWnd, -20, (currentStyle | (int)0x00400000L));
        }