HOWTO: How to Change Default Button on CPropertySheet (140587)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
This article was previously published under Q140587 SUMMARY
When a modal CPropertySheet is created, the default button is the OK
button. To change the default to a different button, derive a class from
CPropertySheet, override OnInitDialog(), and send a message of DM_SETDEFID
to the sheet with the ID of the new button.
Modification Type: | Major | Last Reviewed: | 11/3/2003 |
---|
Keywords: | kbhowto kbPropSheet KbUIDesign KB140587 |
---|
|