问题描述
我有一个C#应用程序,该应用程序正在使用wndproc右键单击任务栏上的消息,但是我还需要使用鼠标左键单击任务栏,以便最小化表单.右键单击任务栏图标的消息值为WMTaskbarRClick = 0x0313.有人知道任务栏图标左键单击时的消息值是什么吗?
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. The message value for right click on taskbar icon is WMTaskbarRClick = 0x0313. Does anyone know what the message value is for left click on taskbar icon?
推荐答案
FWIW:我不知道您应该在单击任务栏时最小化表单.默认行为应该是最小化其任务栏按钮被单击并由Windows为您处理的窗体.
FWIW: I don't know that you should minimize a form when the taskbar is left clicked. The default behaviour should be to minimize a form whose taskbar button is left clicked and Windows handles that for you.
这篇关于在C#中使用wndproc最小化任务栏左击时的形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!