简体   繁体   中英

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. 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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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