public static int GetWindowHeight(this IntPtr windowHandle) { SEBWindowHandler.RECT lpRect = new SEBWindowHandler.RECT(); if (!SEBWindowHandler.GetWindowRect(new HandleRef((object)null, windowHandle), out lpRect)) { return(0); } return(lpRect.Bottom - lpRect.Top); }
private static extern bool GetWindowRect(HandleRef hWnd, out SEBWindowHandler.RECT lpRect);