views:

1259

answers:

1

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  A: 

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.

I have my FormBorderStyle set to None so in this case Windows is not handling it because I have disabled that functionality. That is why I am looking for a way to do it with sending a message through wndproc.