Based on KRosUser's suggestion. bgCol is a COLORREF value, not a color index. Create a brush from bgCol. CORE-9853