If you want to do this for any window(excluding your application in a
different process), you will need to create a system wide hook and trap
relevant message. Keep in mind that when you create a system wide hook, it
will loaded in all processes.
--
Ajay Kalra [MVP - VC++]
(E-Mail Removed)
"Justin Echternach" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> What is the best way to detect the minimization/maximization of any
windows
> program currently running?
>
> Do I want to hook the desktop message pump?
>
>