Specifies the color palette that the object application should use when it edits the specified object.
HRESULT SetColorScheme(
LOGPALETTE *pLogpal //Pointer to a structure
);
The IOleObject::SetColorScheme method sends the container application's recommended color palette to the object application, which is not obliged to use it.
Upon receiving the palette, the object application should:
The first palette entry in the LOGPALETTE structure specifies the foreground color recommended by the container. The second palette entry specifies the recommended background color. The first half of the remaining palette entries are fill colors and the second half are colors for the lines and text.
Container applications typically specify an even number of palette entries. If a container specifies an odd number of entries, the object application should assume that the first half of the total entries plus one designate fill colors, while the remainder designate line and text colors. For example, if there are five entries, the first three should be interpreted as fill colors and the last two as line and text colors.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in oleidl.h.