简体   繁体   English

在C#中使用wndproc最小化任务栏的左击形式

[英]Using wndproc in C# to minimize form on leftclick of taskbar

I have a C# application that is using wndproc to get a message for a right click to the taskbar, but I also need to use a left click to the taskbar so that I can minimize my form. 我有一个C#应用程序,该应用程序正在使用wndproc来获得一条消息,以右键单击任务栏,但是我还需要使用左键单击任务栏,以便最小化表单。 The message value for right click on taskbar icon is WMTaskbarRClick = 0x0313. 右键单击任务栏图标的消息值为WMTaskbarRClick = 0x0313。 Does anyone know what the message value is for left click on taskbar icon? 有人知道任务栏图标左键单击时的消息值是什么吗?

This link may have the information you seek. 该链接可能包含您要查找的信息。

Another link 另一个链接

FWIW: I don't know that you should minimize a form when the taskbar is left clicked. FWIW:我不知道当左键单击任务栏时,您是否应该最小化表单。 The default behaviour should be to minimize a form whose taskbar button is left clicked and Windows handles that for you. 默认行为应是最小化其任务栏按钮被单击并由Windows为您处理的窗体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM