HOWTO: How to Change Default Control Focus on CPropertyPage (148388)
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 Q148388 SUMMARY
When 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.
Modification Type: | Major | Last Reviewed: | 10/24/2003 |
---|
Keywords: | kbcode kbCtrl kbhowto kbNoUpdate KbUIDesign KB148388 |
---|
|