COleControl::OnGetColorSet

This method is called by the framework when the container calls the IOleObject::GetColorSet method. The container calls this method to obtain all the colors needed to draw the ActiveX control. The container can use the color sets obtained in conjunction with the colors it needs to set the overall color palette. The default implementation returns FALSE.

At a Glance

Header file: Afxctl.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual BOOL OnGetColorSet( DVTARGETDEVICE FAR* ptd,
HDC
hicTargetDev, LPLOGPALETTE FAR* ppColorSet );

See Also

DVTARGETDEVICE, LOGPALETTE