Partager via


COleServerItem::OnSetColorScheme

Called by the framework to specify a color palette to be used when editing the OLE item.

virtual BOOL OnSetColorScheme(
   const LOGPALETTE* lpLogPalette 
);

Parameters

  • lpLogPalette
    Pointer to a Windows LOGPALETTE structure.

Return Value

Nonzero if the color palette is used; otherwise 0.

Remarks

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 Windows SDK.

Requirements

Header: afxole.h

See Also

Concepts

COleServerItem Class

COleServerItem Members

Hierarchy Chart