The information in this article applies to:
SUMMARYWhen 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. MORE INFORMATIONThe IDs of the buttons that are created in a modal CPropertySheet are:
Before you can set the focus to a button, the button must exist and be
enabled. By default, the Apply button on a modal CPropertySheet is not
enabled; it has to be explicitly enabled as shown in the sample code in
this article.If you want a button other than these default buttons to have the default focus, you have to create the button, say IDC_MYBUTTON, and set focus to that button using:
Sample Code
Additional query words: kbinf 4.00
Keywords : kbcode kbMFC KbUIDesign kbVC |
Last Reviewed: August 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |