256-Color Support in OLE 2.0 Containers (98872)
The information in this article applies to:
- Microsoft OLE Libraries for Windows and Win32s 2.0
- Microsoft OLE Libraries, when used with:
- the operating system: Microsoft Windows NT 3.5
- the operating system: Microsoft Windows NT 3.51
- the operating system: Microsoft Windows 95
This article was previously published under Q98872 SUMMARY
If a client application draws a 256-color object in OLE version 1.0,
the palette is always realized and used during the OleDraw command. As
a result, the palette from the last object displayed is always used,
causing previously drawn objects to update poorly.
In OLE version 2.0, OleDraw does not realize the palette
automatically. Instead, a container must call
IViewObject::GetColorSet() to retrieve the logical palette for each of
its displayed objects. With this information, the container can
construct a palette that best suits all of its displayed objects.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kbprogramming KB98872 |
---|
|