Detect Window Minimize and Maximize

  • Thread starter Thread starter Justin Echternach
  • Start date Start date
J

Justin Echternach

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?
 
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.
 
Is there a better way to accomplish this? Is there not one process I can
hook that will let me detect when any window is minimized or restored?

Ajay Kalra said:
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 address removed)


Justin Echternach said:
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?
 
Back
Top