This member function is called by the framework when the container calls the IOleObject::GetColorSet function. The container calls this member function 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.
virtual BOOL OnGetColorSet( DVTARGETDEVICE FAR* ptd, HDC hicTargetDev, LPLOGPALETTE FAR* ppColorSet );
Header file: | Afxctl.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
COleControl Overview, COleControl Member Functions, Control Classes, DVTARGETDEVICE, LOGPALETTE