Example #1
0
        public Form1()
        {
            InitializeComponent();
            FM = new FormMgr(this);

            WindowMessages = Sender.AllWMMessages();
            SendMessageMessage.Items.AddRange(WindowMessages.ToArray());
            SendMessageResult.Text = "";

            Longs = Sender.AllGWLs();
            SetWindowLongIndex.Items.AddRange(Longs.ToArray());
            SetWindowLongLong_SingleSelect.Visible = true;
            SetWindowLongLong_MultiSelect.Visible  = false;
        }
Example #2
0
        public Win(IntPtr aHWnd, FormMgr aFM) : base("...")
        {
            HWnd = aHWnd;
            FM   = aFM;

            StringBuilder SB = new StringBuilder(256);

            API.RealGetWindowClass(HWnd, SB, 256);
            ClassName = SB.ToString();

            SB = new StringBuilder(256);
            API.GetWindowText(HWnd, SB, 256);
            WindowTitle = SB.ToString();

            Text = (ClassName + " : " + WindowTitle);

            IntPtr hChild = API.GetWindow(HWnd, API.GetWindowType.GW_CHILD);

            while (hChild != IntPtr.Zero)
            {
                this.Nodes.Add(new Win(hChild, FM));
                hChild = API.GetWindow(hChild, API.GetWindowType.GW_HWNDNEXT);
            }
        }