Ejemplo n.º 1
0
        void ListTitleBarInfo(IntPtr win)
        {
            WindowApiUtilities.TITLEBARINFO ti = new WindowApiUtilities.TITLEBARINFO();
            ti.cbSize = (uint)Marshal.SizeOf(typeof(WindowApiUtilities.TITLEBARINFO));

            WindowUtilities.logMsgln("Title bar info");
            WindowUtilities.logMsgln("Title bar rect| " + WindowListingUtilities.ListRect(ti.rcTitleBar));
            WindowUtilities.logMsgln("Title bar ht  | " + (ti.rcTitleBar.Bottom - ti.rcTitleBar.Top));
        }
Ejemplo n.º 2
0
        StringBuilder ShowChildren(WindowInfo[] wInfos, Graphics g, ColorChart cc)
        {
            StringBuilder sb    = new StringBuilder();
            Color         color = cc.GetActiveAsTransparent;

            cc.Reset();

            foreach (WindowInfo wi in wInfos)
            {
                if (wi.Rect.Width == 0)
                {
                    continue;
                }

                PlaceLabel(wi, color);
                color = cc.NextAsTransparent();

                sb.Append("      child rect|").Append(WindowListingUtilities.ListRect(wi.Rect)).Append(WindowListingUtilities.nl);
            }

            return(sb);
        }