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

☆樱花仙子☆ 提交于 2019-12-13 03:34:44

问题


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?


回答1:


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. The default behaviour should be to minimize a form whose taskbar button is left clicked and Windows handles that for you.



来源:https://stackoverflow.com/questions/963201/using-wndproc-in-c-sharp-to-minimize-form-on-leftclick-of-taskbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!