Пример #1
0
        public static bool IsSquareWindowEdge(IntPtr Handle)
        {
            bool isMaximized = IsWindowMazimized(Handle);

            if (isMaximized)
            {
                return(true);
            }

            //Toolwindow = Gimp toolbox
            //Zune, Steam seem to have both Group and Tabstop
            int ExStyle = Windowing.GetWindowLong(Handle, Windowing.GWL_EXSTYLE);
            int Style   = Windowing.GetWindowLong(Handle, Windowing.GWL_STYLE);

            bool toolwin    = (ExStyle & Windowing.WS_EX_TOOLWINDOW) != 0;
            bool windowedge = (ExStyle & Windowing.WS_EX_WINDOWEDGE) != 0;
            bool popup      = (Style & Windowing.WS_POPUP) != 0;
            bool uix        = GetClassName(Handle) == "UIX Render Window";

            if (((toolwin || popup) && !windowedge) || uix)
            {
                return(true);
            }
            else
            {
                return(false);
            }

            //((Unmanaged.GetWindowLong(Handle, Unmanaged.GWL_STYLE) & Unmanaged.WS_GROUP) != 0 && (Unmanaged.GetWindowLong(Handle, Unmanaged.GWL_STYLE) & Unmanaged.WS_TABSTOP) != 0);
        }
Пример #2
0
        public static bool isDialogWindow(IntPtr Handle)
        {
            return((Windowing.GetWindowLong(Handle, Windowing.GWL_EXSTYLE) & Windowing.WS_EX_DLGMODALFRAME) != 0);
            //||

            //    //Also check for dialog frame (but since that will also be true if mystery stype is true, check that that isn't there)
            //    ((Windowing.GetWindowLong(Handle, Windowing.GWL_STYLE) & Windowing.WS_DLGFRAME) != 0 &&
            //    !((Windowing.GetWindowLong(Handle, Windowing.GWL_STYLE) & 0xC000) != 0));
        }
Пример #3
0
 public static bool HasNonClientBorder(IntPtr Handle)
 {
     return((Windowing.GetWindowLong(Handle, Windowing.GWL_STYLE) & Windowing.WS_BORDER) != 0);
 }