/// <summary> /// 获取一个值,该值指示控件是否已捕获鼠标。 /// </summary> /// <param name="hWnd">控件句柄。</param> /// <returns>如果控件已捕获鼠标,则为 true;否则为 false。</returns> public static bool GetCapture(IntPtr hWnd) { return(GetIsHandleCreated(hWnd) && (UnsafeNativeMethods.GetCapture() == hWnd)); }