Microsoft KB Archive/179366

{|
 * width="100%"|

PRB: Infinite Loop When Buttons are Selected With Arrow Key

 * }

Q179366

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK)

-

SYMPTOMS
When 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 clicking OK.

CAUSE
IsDialogMessage 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.

RESOLUTION
Use 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.

STATUS
This behavior is by design.

MORE INFORMATION
Please note that removing the BS_AUTORADIOBUTTON style will not allow DDX to work with the option buttons.

© Microsoft Corporation 1997, All Rights Reserved.

Contributions by Isaac Varon, Microsoft Corporation

Additional query words:

Keywords : kbButton kbCtrl kbOSWinNT kbOSWin2000 kbSDKWin32 kbGrpDSUser kbOSWin

Issue type : kbprb

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch