Skip to content

Commit 6c8bb96

Browse files
committed
Initialize COLORREF data members
1 parent 3219dd8 commit 6c8bb96

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ColorHeaderCtrl.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ class CColorHeaderCtrl : public CHeaderCtrl
3131
void SetBackgroundColorPressed(const COLORREF cr) { m_crBackgroundPressed = cr; }
3232

3333
protected:
34-
COLORREF m_crText;
35-
COLORREF m_crBackground;
36-
COLORREF m_crBackgroundHot;
37-
COLORREF m_crBackgroundPressed;
34+
COLORREF m_crText{ 0 };
35+
COLORREF m_crBackground{ 0 };
36+
COLORREF m_crBackgroundHot{ 0 };
37+
COLORREF m_crBackgroundPressed{ 0 };
3838
COLORREF m_crBackgroundTheme{ 0 };
39-
COLORREF m_crBackgroundHotTheme;
40-
COLORREF m_crBackgroundPressedTheme;
39+
COLORREF m_crBackgroundHotTheme{ 0 };
40+
COLORREF m_crBackgroundPressedTheme{ 0 };
4141
BOOL m_bCustomDraw{ FALSE };
4242
BOOL m_bPrint{ FALSE }; // To avoid infinite loop with WM_PRINTCLIENT
4343

0 commit comments

Comments
 (0)