/// <summary>
        /// Call back method for EnumApplication
        /// </summary>
        private static bool EnumApplicationCallBack(IntPtr pwindow, int i)
        {
            Win32Window window = new Win32Window(pwindow);

            if (window.Parent.Window != IntPtr.Zero) return true;
            if (window.Visible != true) return (true);
            if (window.Text == string.Empty) return (true);
            if (window.ClassName.Substring(0, 8) == "IDEOwner") return (true);

            applicationWindows.Add(window);
            return true;
        }
示例#2
0
        public WindowSnapshotMenuItem(PresenterModel model, Win32Window window)
        {
            this.m_AppWindow = window;
            this.m_Model = model;

            this.Text = this.m_AppWindow.Text;

            this.Click += new EventHandler(WindowSnapshotMenuItem_Click);
        }