- 3
- 0
- 约1.1万字
- 约 12页
- 2017-10-07 发布于河南
- 举报
用c#和本地win api操纵系统菜单(Use c# and local win API to manipulate the system menu)
用c#和本地win api操纵系统菜单(Use c# and local win API to manipulate the system menu)
DOC documents may experience poor browsing on the WAP side. It is recommended that you first select TXT, or download the source file to the local view.
I. Preface
The.NET framework is a very new technology application in the field of Windows, certainly in the next period of time, the.NET application must be with the existing Windows technology interaction. This interaction is mainly reflected in two areas: COM and application programming interface (API). Therefore, the.NET framework in Windows API provides a OO layer, but sometimes
May need to use a.NET API call can not be reached. In this case, you can use the.NET platform invoke mechanism (P/Invoke) from the.NET call C or C++ function. Because the Windows API function in DLL, so, P/Invoke from the.NET code to call DLL in C or C++ function provides a general the mechanism.
In this paper, aiming at the actual properties similar to the SystemMenu member function directly or similar to GetSystemMenu does not provide C#.NET, write a C# class of SystemMenu, so as to realize the traditional system for the operation of the menu, this is done by calling the local Windows API.
Two, system menu introduction
When you click the window icon or right-click on the title bar of the window when the system menu pops. It contains the default behavior of the current window system. Different window menu looks a little different, such as the system menu a normal window look with a sub menu toolbar dialog window is not the same.
The benefits of modifying the system menu:
Add the menu item defined by the application itself
When WW is minimized, SS is a good place to place actions that can be accessed because SS can be displayed by right clicking on the taskbar window icon
Make a menu item such as lose the ability to remove from the system menu to maximize, minimize the off . As a result of this change also affects the three buttons in the upper right corner of the
您可能关注的文档
- 浅谈提高摄像水平的五个因素(Discussion on five factors of improving camera shooting level).doc
- 浅谈施工单位工程造价管理及成本控制(Discussion on construction cost management and cost control of construction unit).doc
- 浅谈服装工厂的技术经济发展(Technical and economic development of garment factories).doc
- 浅谈每个人的多面性格(On each person's multifaceted personality).doc
- 浅谈排球运动中一攻与防反的地位与作用(The status and role of anti attack and prevention of Volleyball).doc
- 浅谈演讲的入题、破题、点题公众演讲(The speech into the title, essay topic, public speaking).doc
- 浅谈物理实验教学中的演示实验和分组实验_初中物理在线_论文中心(In physics experimental teaching demonstration experiment and the group experiment in junior middle school physics _ online _ paper center).doc
- 浅谈服刑人员投改初期的特征及改造对策(Characteristics and Reform Countermeasures of prisoners in the early stage of reform).doc
- 浅谈施工企业安全生产投入与经济效益的关系(Discussion on the relationship between safety production input and economic benefit of construction enterprises).doc
- 浅谈秘书应具备的能力(On the ability of a secretary).doc
- 2026年及未来5年内中国液体氩气行业投资前景及策略咨询研究报告.docx
- 2026年及未来5年内中国黄铜合页行业投资前景及策略咨询研究报告.docx
- 2026年及未来5年内中国竹工艺家具行业投资前景及策略咨询研究报告.docx
- 2025年中国微机数显自动分析仪市场调查研究报告.docx
- 2026年及未来5年内中国微尘白色粉笔行业投资前景及策略咨询研究报告.docx
- 2025年中国微电脑型压胶机市场调查研究报告.docx
- 2026年及未来5年内中国数字化等功游泳训练测试系统行业投资前景及策略咨询研究报告.docx
- 2025年中国圆形花瓶市场调查研究报告.docx
- 2026年及未来5年内中国植物纤维静淀过滤器行业投资前景及策略咨询研究报告.docx
- 2025年中国超音波手套机市场调查研究报告.docx
原创力文档

文档评论(0)