Article ID: 148242
Article Last Modified on 11/21/2006
APPLIES TO
- Microsoft Foundation Class Library 4.2, when used with:
- Microsoft Visual C++ 4.0 Standard Edition
- Microsoft Visual C++ 4.1 Subscription
- Microsoft Visual C++ 4.2 Enterprise Edition
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 4.2 Professional Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
- Microsoft Visual C++ .NET 2002 Standard Edition
- Microsoft Visual C++ .NET 2003 Standard Edition
This article was previously published under Q148242
Note Microsoft Visual C++ .NET (2002) supports both the managed code
model that is provided by the Microsoft .NET Framework and the unmanaged native
Microsoft Windows code model. The information in this article applies only to
unmanaged Visual C++ code.
SUMMARY
This article describes how to modify the background color
of an OLE control that subclasses a Windows Control. Sample code for an
Edit control is provided.
This article also applies to Button, Static, ListBox,
and ComboBox controls.
REFERENCES
Refer to technical article "TN062: Message
Reflection for Windows Controls" and the article "ActiveX
Controls: Sub-classing a Windows Control in Visual C++ Programmer's
Guide."
Additional query words: list box combo
Keywords: kbinfo kbcode kbctrl kbhowto KB148242