Grey:
This probably isn't the best method and I'm sure I will find stuff on MSDN to do it properly, but each time you maximize, restore, or minimize a window, a $801 window position event is generated. If this position is -4 -4 then the window has been maximized, and if it is -32000 -32000 it has been minimized.
But it is possible to get -4 -4 just by positioning the window so you probably do not want to go off that alone.
An event 802 is also generated immediately after the 801 event, so you might use that info in conjunction.
I would look on MSDN though and find the right windows function to call to get the window state. I'm sure there must be one. Maybe someone realdy added a function to do it to the code archives.
This probably isn't the best method and I'm sure I will find stuff on MSDN to do it properly, but each time you maximize, restore, or minimize a window, a $801 window position event is generated. If this position is -4 -4 then the window has been maximized, and if it is -32000 -32000 it has been minimized.
But it is possible to get -4 -4 just by positioning the window so you probably do not want to go off that alone.
An event 802 is also generated immediately after the 801 event, so you might use that info in conjunction.
I would look on MSDN though and find the right windows function to call to get the window state. I'm sure there must be one. Maybe someone realdy added a function to do it to the code archives.