The information in this article applies to:
SYMPTOMSPressing the ESC key when the focus is on a Multiline Edit control that is a child of a property sheet page, does not dismiss the property sheet control as expected. CAUSEWhen the ESC key is pressed while focus is on a Mutiline Edit control, the IDCANCEL notification (sent with a WM_COMMAND message) is sent to the property sheet dialog proc whose template contains the Multiline Edit control. Property sheet dialog procs do not process this message, so it is not forwarded to the property sheet control. RESOLUTIONTrap the IDCANCEL notification that is sent along with the WM_COMMAND message in the property sheet dialog proc that contains the multiline edit control. Then forward the message to the property sheet control. (The property sheet control is the parent of all the property sheet page dialogs.) The following code shows how to do this: Sample Code
NOTE: This solution also works with wizard controls. This behavior is seen
under both Windows NT and Windows 95; the solution in this article works
for both platforms.
Additional query words: user styles
Keywords : kbcode kbCtrl kbNTOS351 kbWinOS2000 kbPropSheet kbSDKWin32 kbGrpUser kbWinOS95 |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |