Beispiel #1
0
        // Callback methods must be public, otherwise call from menu item fails
        public void GeometryToolMethod()
        {
            var swFrame = new swFrame(Process.GetProcessById(swApp.GetProcessID()).MainWindowHandle);
            var f       = new PowerGeometryForm(swApp);

            f.StartPosition = FormStartPosition.CenterParent;
            f.ShowDialog(swFrame);
        }
        private IntPtr GetSummaryInfoDialogHandle()
        {
            m_CurrentSummaryHandle = IntPtr.Zero;

            var prc = Process.GetProcessById(m_App.GetProcessID());

            for (int i = 0; i < prc.Threads.Count; i++)
            {
                var threadId = (uint)prc.Threads[i].Id;
                EnumThreadWindows(threadId, FindSymmaryInfoDialog, IntPtr.Zero);
            }

            return(m_CurrentSummaryHandle);
        }