欢迎来到天天文库
浏览记录
ID:40531577
大小:80.02 KB
页数:32页
时间:2019-08-04
《c# 获取当前系统所有窗口句柄(含任务栏托盘图标等) 完整源码下载》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、【核心代码】usingSystem;usingSystem.Drawing;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Windows.Forms;usingSystem.Runtime.InteropServices;usingSystem.Security.Permissions;usingSystem.Reflection;usingSystem.Globalization;usingSystem.Diagnostics; usingCommon; namespa
2、ceTaskbarSorter{ /// ///SummarydescriptionforForm1. /// publicclassForm1:System.Windows.Forms.Form { privateSystem.Windows.Forms.Buttonbutton1; privateSystem.Windows.Forms.ToolBartoolBar1; privateSystem.Windows.Forms.TreeList
3、ViewtreeListView1; privateSystem.Windows.Forms.ColumnHeadercolumnHeader1; privateSystem.ComponentModel.IContainercomponents; privateSystem.Windows.Forms.ColumnHeadercolumnHeader2; privateSystem.Windows.Forms.ColumnHeadercolumnHeader3; privateSys
4、tem.Windows.Forms.ColumnHeadercolumnHeader4; privateSystem.Windows.Forms.ToolBarButtontoolBarButtonMoveFirst; privateSystem.Windows.Forms.ToolBarButtontoolBarButtonMoveUp; privateSystem.Windows.Forms.ImageListimageListToolbar; privateSystem.Windows.For
5、ms.ToolBarButtontoolBarButtonMoveDown; privateSystem.Windows.Forms.ToolBarButtontoolBarButtonMoveLast; privateSystem.Windows.Forms.Button_Apply; privateSystem.Windows.Forms.Button_ViewTree; privateSystem.Windows.Forms.Button_ExpandAll; privateSy
6、stem.Windows.Forms.Button_CollapseAll; privateSystem.Windows.Forms.ImageListimageListTreeView; privateSystem.Windows.Forms.Button_Repair; privateSystem.Windows.Forms.ToolTip_ToolTips; privateIcon_Icon=null; privatebool_FirstActivation=true;
7、 privateITree_Tree=NodeTree.NewTree(typeof(DataBase)); privateIntPtr_ToolbarWindowHandle=IntPtr.Zero; privatebool_Glomming=true; publicForm1() { string[]a=Assembly.GetEntryAssembly().GetManifestResourceNames(); Trace
8、.WriteLine("ResourceNames:");
此文档下载收益归作者所有