COleServerItem::OnSetColorScheme

virtual BOOL OnSetColorScheme( const LOGPALETTE FAR* lpLogPalette );

Return Value

Nonzero if the color palette is used; otherwise 0.

Parameters

lpLogPalette

Pointer to a Windows LOGPALETTE structure.

Remarks

Called by the framework to specify a color palette to be used when editing the OLE item. If the container application was written using the Microsoft Foundation Class Library, this function is called when the IOleObject::SetColorScheme function of the corresponding COleClientItem object is called. The default implementation returns FALSE. Override this function if you want to use the recommended palette. The server application is not required to use the suggested palette.

For more information, see IOleObject::SetColorScheme in the OLE 2 Programmer’s Reference, Volume 1.

COleServerItem OverviewClass MembersHierarchy Chart