コード例 #1
0
        private void MainForm_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            if (m_HasCapture)
            {
                System.Diagnostics.Trace.WriteLine(string.Format("{0}, {1}", Control.MousePosition.X, Control.MousePosition.Y));
                ReleaseCapture();
                m_HasCapture = false;

                if (this.m_FindhWnd != IntPtr.Zero)
                {
                    using (WindowPropertiesForm form1 = new WindowPropertiesForm())
                    {
                        form1.TargetWindowHandle = this.m_FindhWnd;

                        string   treeNodeText     = string.Format("Window {0:X8}", this.m_FindhWnd.ToInt32());
                        TreeNode selectedTreeNode = FindTreeNode(this.windowTree.Nodes[0], treeNodeText);
                        if (selectedTreeNode != null)
                        {
                            selectedTreeNode.EnsureVisible();
                            this.windowTree.SelectedNode = selectedTreeNode;
                        }

                        this.RemoveFindRect();
                        new FormSizeSaver(form1);

                        form1.ShowDialog();
                    }
                }
            }
        }
コード例 #2
0
        private void details_Click(object sender, System.EventArgs e)
        {
            WindowTreeNode       node     = (WindowTreeNode)windowTree.SelectedNode;
            WindowPropertiesForm propForm = new WindowPropertiesForm();

            propForm.TargetWindowHandle = node.Hwnd;

            FormSizeSaver saver = new FormSizeSaver(propForm);

            propForm.ShowDialog();
        }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: carlmon/wfSpy
        private void MainForm_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            if (m_HasCapture)
            {
                System.Diagnostics.Trace.WriteLine(string.Format("{0}, {1}", Control.MousePosition.X, Control.MousePosition.Y));
                ReleaseCapture();
                m_HasCapture= false;

                if (this.m_FindhWnd != IntPtr.Zero)
                {
                    using (WindowPropertiesForm form1 = new WindowPropertiesForm())
                    {
                        form1.TargetWindowHandle = this.m_FindhWnd;

                        string treeNodeText = string.Format("Window {0:X8}", this.m_FindhWnd.ToInt32());
                        TreeNode selectedTreeNode = FindTreeNode(this.windowTree.Nodes[0], treeNodeText);
                        if (selectedTreeNode != null)
                        {
                            selectedTreeNode.EnsureVisible();
                            this.windowTree.SelectedNode = selectedTreeNode;
                        }

                        this.RemoveFindRect();
                        new FormSizeSaver(form1);

                        form1.ShowDialog();
                    }
                }
            }
        }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: carlmon/wfSpy
        private void details_Click(object sender, System.EventArgs e)
        {
            WindowTreeNode node = (WindowTreeNode)windowTree.SelectedNode;
            WindowPropertiesForm propForm = new WindowPropertiesForm();
            propForm.TargetWindowHandle = node.Hwnd;

            FormSizeSaver saver = new FormSizeSaver(propForm);
            propForm.ShowDialog();
        }