How to change the background color of an OLE control in Visual C++ (148242)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- 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 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."
Modification Type: | Major | Last Reviewed: | 5/31/2005 |
---|
Keywords: | kbinfo kbcode kbCtrl kbhowto KB148242 kbAudDeveloper |
---|
|