The information in this article applies to:
SYMPTOMS
In a standard Microsoft Windows version 3.1 multiple document
interface (MDI) application, when a minimized MDI child is active and
the user presses the ENTER key, the child is not restored.
RESOLUTIONOne quick workaround to this problem is to create an accelerator for the ENTER key and restore the minimized MDI child when the key is pressed. MORE INFORMATION
It may be desirable to implement the same restore feature that File
Manager and Program Manager have implemented in order to enable the
user to restore an MDI child by pressing the ENTER key. If this
feature is implemented, then the MDI application can be consistent
with other popular applications such as File Manager, Microsoft Excel,
and Microsoft Word.
After this accelerator has been installed in the MDI application, each
time the ENTER key is pressed by the user, an IDM_RESTORE command will
be sent to the MDI frame window's window procedure through a
WM_COMMAND message. When the MDI frame receieves this message, its
window procedure should retrieve a handle to the active MDI child and
determine if it is minimized. If it is minimized, then it can restore
the MDI child by sending the MDI client a WM_MDIRESTORE message. This
can all be done with the following code:
Additional query words:
Keywords : kbMDI kbNTOS kbGrpUser kbWinOS kbWndw |
Last Reviewed: December 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |