添加关联控件变量为:m_picColor
CRect rect ;
m_picColor.GetClientRect(&rect);//获取空间区域
FillRect(m_picColor.GetDC()->GetSafeHdc(),&rect,CBrush(RGB(m_iColorRed,m_iColorGreen,m_iColorBlue)));//填充该区域颜色
添加关联控件变量为:m_picColor
CRect rect ;
m_picColor.GetClientRect(&rect);//获取空间区域
FillRect(m_picColor.GetDC()->GetSafeHdc(),&rect,CBrush(RGB(m_iColorRed,m_iColorGreen,m_iColorBlue)));//填充该区域颜色