PRWIN9012007: Activate Next MDI Child, Present Child Zoomed

ID Number: Q72026

3.00

WINDOWS

buglist3.00 fixlist3.10

Summary:

PROBLEM ID: WIN9012007

SYMPTOMS

In a Windows version 3.0 multiple document interface (MDI)

application, when the currently active MDI child is maximized,

using the MDI system accelerator CTRL+F6 to activate the next MDI

child may leave options in the newly activated child's system menu

inappropriately disabled.

RESOLUTION

Microsoft has confirmed this to be a problem in Windows version

3.0. To avoid this problem, modify the MDI child window procedure

to process WM_MDIACTIVATE messages. When one of these messages is

received, check to see if the child is being activated (wParam !=

0) and is currently maximized (the IsZoomed function returns TRUE).

If so, use the GetSystemMenu function to retrieve the handle to the

child window's system menu and then enable/disable menu items as

appropriate.

This problem was corrected in Windows version 3.1.

Additional reference words: 3.00