/// <summary> /// Get the titlebar info ex for the specified window /// </summary> /// <param name="hWnd">IntPtr with the window handle</param> /// <returns>TitleBarInfoEx</returns> public static TitleBarInfoEx GetTitleBarInfoEx(IntPtr hWnd) { var result = TitleBarInfoEx.Create(); SendMessage(hWnd, WindowsMessages.WM_GETTITLEBARINFOEX, IntPtr.Zero, ref result); return(result); }
internal static extern IntPtr SendMessage(IntPtr hWnd, WindowsMessages windowsMessage, IntPtr wParam, ref TitleBarInfoEx lParam);