HOWTO: How To Disable Push Buttons on a DialogBar in MFC (152376)
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++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
This article was previously published under Q152376 SUMMARY
Push-button controls on a DialogBar cannot be disabled by calling
EnableWindow. The following code has no effect:
GetDlgItem(IDC_BUTTON1)->EnableWindow(FALSE);
This article describes how to implement push-button controls that can be
disabled.
Modification Type: | Major | Last Reviewed: | 12/8/2003 |
---|
Keywords: | kbDocView kbhowto kbMFCCtrlBar KbUIDesign KB152376 kbAudDeveloper |
---|
|