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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top