I have a system tray icon, and I want to add a feature that will allow the user to NOT have to see the taskbar icon. When the user presses the minimize button, basically I want to send a "ShowWindow(SW_HIDE)" to the application to hide the taskbar icon (because the system tray icon is always there in my app).

Can anyone offer suggestions on how this is accomplished? How can I intercept (or handle) a minimize message when the user clicks the minimize button?

Thanks in advance!

- Troy