Hi All,

I am trying to make my program hide (leaving only the icon tray) when a user clicks the minimize. I first tried the resizeEvent, but it seems this doesn't get called when the window is Minimized.

Searching the forum found mentions of winEvent and tried that in my header file:

Qt Code:
  1. protected:
  2. bool winEvent( MSG * );
To copy to clipboard, switch view to plain text mode 

.. but when I try and compile, I always get

Qt Code:
  1. error: ‘MSG’ has not been declared
To copy to clipboard, switch view to plain text mode 

I can't find it in any headers.. what do I need to include to get that to work?

Thanks in advance.