How to change the text color of the selected property sheet tab in Visual C++ (206626)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2b
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2b
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
This article was previously published under Q206626 NOTE: Microsoft Visual C++ NET (2002) supported both the managed code
model that is provided by the .NET Framework and the unmanaged native Windows
code model. The information in this article applies to unmanaged Visual C++
code only. SUMMARY To change the color of text on the selected tab of a
property sheet, you need to subclass the tab control associated with the
property sheet and make it owner drawn.
Override the DrawItem method
of your class derived from CTabCtrl and change the color of text before
displaying it. REFERENCES
Modification Type: | Major | Last Reviewed: | 4/28/2005 |
---|
Keywords: | kbhowto kbPropSheet KB206626 kbAudDeveloper |
---|
|