--- Module: CJColorPicker.cpp SetBkColor(GetSysColor(COLOR_3DFACE)); CJColorPicker.cpp(111): error 1506: (Warning -- Call to virtual function 'CCJColorPicker::SetBkColor(unsigned long)' within a constructor or destructor) SetTextColor(GetSysColor(COLOR_BTNTEXT)); CJColorPicker.cpp(112): error 1506: (Warning -- Call to virtual function 'CCJColorPicker::SetTextColor(unsigned long)' within a constructor or destructor) hTheme = m_pTheme->OpenThemeData(GetSafeHwnd(), L"BUTTON"); CJColorPicker.cpp(267): error 613: (Warning -- Possible use of null pointer 'CCJColorPicker::m_pTheme' in left argument to operator '->' [Reference: file CJColorPicker.cpp: line 260]) hArrowTheme = m_pTheme->OpenThemeData(GetSafeHwnd(), L"COMBOBOX"); CJColorPicker.cpp(268): error 613: (Warning -- Possible use of null pointer 'CCJColorPicker::m_pTheme' in left argument to operator '->' [Reference: file CJColorPicker.cpp: line 260]) NULL); CJColorPicker.cpp(306): error 613: (Warning -- Possible use of null pointer 'CCJColorPicker::m_pTheme' in left argument to operator '->' [Reference: file CJColorPicker.cpp: line 260]) &rcItem); CJColorPicker.cpp(314): error 613: (Warning -- Possible use of null pointer 'CCJColorPicker::m_pTheme' in left argument to operator '->' [Reference: file CJColorPicker.cpp: line 260]) NULL); CJColorPicker.cpp(370): error 613: (Warning -- Possible use of null pointer 'CCJColorPicker::m_pTheme' in left argument to operator '->' [Reference: file CJColorPicker.cpp: line 260]) int nArrowWidth = max(::GetSystemMetrics(SM_CXHTHUMB), 5*MarginSize.cx); CJColorPicker.cpp(570): error 666: (Warning -- Expression with side effects passed to repeated parameter 1 in macro 'max') int nArrowHeight = max(::GetSystemMetrics(SM_CYVTHUMB), 5*MarginSize.cy); CJColorPicker.cpp(571): error 666: (Warning -- Expression with side effects passed to repeated parameter 1 in macro 'max') int nWidth = max(rect.Width(), 2*ArrowSize.cx + 2*MarginSize.cx); CJColorPicker.cpp(583): error 666: (Warning -- Expression with side effects passed to repeated parameter 1 in macro 'max') --- Global Wrap-up error 900: (Note -- Successful completion, 10 messages produced)