文件名称:hidekit
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-06-17
- 文件大小:
- 42kb
- 下载次数:
- 0次
- 提 供 者:
- tpu****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
C#源码实现隐藏在窗口左侧的工具栏小窗口,默认状态下,打开窗口时工具箱是隐藏的,可以只看到一条竖线,鼠标移到竖线上面,工具栏就展开了,展开的工具栏带关闭按钮,用户可在不需要时随时关闭它。
实现过程概述:获取控件及窗体的句柄,获取当前鼠标下可视化控件的句柄,获取指定句柄的父级句柄,获取当前鼠标下可视化控件的句柄,置存储句柄的变量,记录原始句柄,遍历该句柄的父级句柄,获取当前鼠标下可视化控件的句柄,返回最底层的父级句柄-C# source code to hide the toolbar on the left of the window a small window, by default, open the Toolbox window is hidden, you can only see a vertical bar, mouse over the vertical line above the toolbar on the launching, and expanded Toolbar with Close button, the user can always turn it off when not needed. Implementation process overview: Get control and form a handle, get the current mouse under visual control handle to obtain the specified handle parent handle, get the current mouse under visual control handle, home storage handle variables, record the original handle, traverse the handle parent handle, get the current mouse under visual control handle to return the bottom of the handle of the parent
实现过程概述:获取控件及窗体的句柄,获取当前鼠标下可视化控件的句柄,获取指定句柄的父级句柄,获取当前鼠标下可视化控件的句柄,置存储句柄的变量,记录原始句柄,遍历该句柄的父级句柄,获取当前鼠标下可视化控件的句柄,返回最底层的父级句柄-C# source code to hide the toolbar on the left of the window a small window, by default, open the Toolbox window is hidden, you can only see a vertical bar, mouse over the vertical line above the toolbar on the launching, and expanded Toolbar with Close button, the user can always turn it off when not needed. Implementation process overview: Get control and form a handle, get the current mouse under visual control handle to obtain the specified handle parent handle, get the current mouse under visual control handle, home storage handle variables, record the original handle, traverse the handle parent handle, get the current mouse under visual control handle to return the bottom of the handle of the parent
(系统自动生成,下载前可以参看下载内容)
下载文件列表
hidekit\HideKit\Form1.cs
.......\.......\Form1.Designer.cs
.......\.......\Form1.resx
.......\.......\HideKit.csproj
.......\.......\Image\01.jpg
.......\.......\.....\02.jpg
.......\.......\.....\03.jpg
.......\.......\.....\04.jpg
.......\.......\Program.cs
.......\.......\...perties\AssemblyInfo.cs
.......\.......\..........\Resources.Designer.cs
.......\.......\..........\Resources.resx
.......\.......\..........\Settings.Designer.cs
.......\.......\..........\Settings.settings
.......\HideKit.sln
.......\HideKit.suo
.......\.......\Image
.......\.......\Properties
.......\HideKit
hidekit