How to handle System menu messages?

  • Thread starter Thread starter Hemanshu Shah
  • Start date Start date
H

Hemanshu Shah

I have a MDI Parent in which I display a dialog box. When user minimize the
dialog I want the whole MDI window to be minimized.

Your help greatly apreciated.

Thanks,
Hemanshu
 
Hemanshu Shah said:
I have a MDI Parent in which I display a dialog box. When user minimize the
dialog I want the whole MDI window to be minimized.

You need to look up the sys command messages in the Platform SDK, you can
trap these messages by overriding the WndProc method of the MDI Form (and
child forms).

HTH,
Jeremy
 
Jeremy Cowles said:
You need to look up the sys command messages in the Platform SDK, you can
trap these messages by overriding the WndProc method of the MDI Form (and
child forms).

One more thing: once you override the WndProc method, you **MUST** call the
bass class WndProc (unless you want to consume a message), otherwise you
will have serious issues.

Call MyBase.WndProc( m )

Jeremy
 
Back
Top