PRB: Infinite Loop When Buttons are Selected With Arrow KeyLast reviewed: January 15, 1998Article ID: Q179366 |
The information in this article applies to:
SYMPTOMSWhen a dialog box appears in response to a user pressing an arrow key to select an option button on a dialog box, the user cannot immediately close the dialog box by selecting the OK button.
CAUSEIsDialogMessage causes multiple BN_CLICKED messages to be sent when the focus is on an option button. This is due to the simulation of what happens when the option button has the BS_AUTORADIOBUTTON style.
RESOLUTIONUse the dialog editor to remove the BS_AUTORADIOBUTTON style from the option button, and then call the CheckRadioButton member function in each of the radio button handlers.
STATUSThis behavior is by design.
MORE INFORMATIONNOTE: Removing the BS_AUTORADIOBUTTON style will not allow DDX to work with the option buttons. (c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Isaac Varon, Microsoft Corporation Keywords : UsrCtl UsrDlgs UsrInp Platform : winnt Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |