The information in this article applies to:
SUMMARYWhen a CPropertyPage is activated, the first control in the page's tab order will get the focus by default. To change the default to a different control, derive a class from CPropertyPage, override OnSetActive(), and post a user message to a member function that will actually set the focus to the desired control. MORE INFORMATION
CPropertySheet's member function OnSetActive() is called when a
PSN_SETACTIVE message is sent to that page. Attempting to set the focus to
a control while in this handler won't produce the expected results because
after this notification is handled, the tab control will get the focus. Sample Code
Additional query words: kbinf 4.00 CPropertySheet
Keywords : kbcode kbMFC KbUIDesign kbVC |
Last Reviewed: August 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |