用c#和本地win api操纵系统菜单(Use c# and local win API to manipulate the system menu).docVIP

  • 3
  • 0
  • 约1.1万字
  • 约 12页
  • 2017-10-07 发布于河南
  • 举报

用c#和本地win api操纵系统菜单(Use c# and local win API to manipulate the system menu).doc

用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

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档