How to Disable Default Pushbutton Handling for MFC Dialog (122489)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 4.0
This article was previously published under Q122489 SUMMARY
Windows dialog boxes support the use of a default button (pushbutton) that
is automatically activated when the ENTER key is pressed while focus is not
on a command button. The MFC class library will automatically call the
CDialog::OnOK() virtual function for a dialog whenever the default button
(pushbutton) is activated by pressing the ENTER key.
This behavior conforms to the guidelines set forth by "The Windows
Interface: An Application Design Guide." This manual is included with the
Windows version 3.1 SDK documentation. It is also available from Microsoft
Press.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | KB122489 |
---|
|