Thank you for the bug report. It seems we missed OnQueryFont()
in the code responsible for painting the color button. Please open the CExtColorButton::_RenderImpl
method and find the following code:
CExtPaintManager::PAINTPUSHBUTTONDATA _ppbd(
this,
true, rectClient, (LPCTSTR)sWindowText,
&icon, bFlat, bHover, bPushed,
false, bEnabled,
(m_bDrawBorder && (!CExtPopupMenuWnd::IsMenuTracking()))
? true : false,
(bDrawFocusRect && (!CExtPopupMenuWnd::IsMenuTracking())
&& (!sWindowText.IsEmpty()) )
? true : false,
bDefault, m_nAlign,
NULL, _IsMenuAvail(), 0, bTransparent
);
Please replace it with this code:
CExtPaintManager::PAINTPUSHBUTTONDATA _ppbd(
this,
true,
rectClient,
(LPCTSTR)sWindowText,
&icon,
bFlat,
bHover,
bPushed,
false,
bEnabled,
m_bDrawBorder ? true : false,
bDrawFocusRect,
bDefault,
m_nAlign,
OnQueryFont(),
_IsMenuAvail(),
0,
bTransparent
);
Then recompile the library. This bug will be also fixed in the next release.