Is there a hook for taking action on the user clicking the Maximize button on an application, and also for Restoring it?

Mike