BrightnessTray.NativeMethods.IsOverClientArea C# (CSharp) Метод

IsOverClientArea() публичный статический Метод

Checks whether the cursor is over the current window's client area.
public static IsOverClientArea ( IntPtr hWnd, IntPtr wParam, IntPtr lParam ) : bool
hWnd System.IntPtr Handle of the window to check.
wParam System.IntPtr Additional message information. The content of this parameter depends on the value of the Msg parameter (wParam).
lParam System.IntPtr Additional message information. The content of this parameter depends on the value of the Msg parameter (lParam).
Результат bool
        public static bool IsOverClientArea(IntPtr hWnd, IntPtr wParam, IntPtr lParam)
        {
            IntPtr uHitTest = DefWindowProc(hWnd, WM_NCHITTEST, wParam, lParam);
            if (uHitTest.ToInt32() == HTCLIENT) // check if we're over the client area
                return true;
            return false;
        }