如何让窗口的PICTURE控件显示出我所选择的颜色?
我在窗口中放一PICTURE控件,
当按动我的颜色选择按钮时弹出COLOR对话框,
在选择了一个颜色返回后,如何能让PICTURE控件显示出所选的颜色呢?
void CWaterDist::OnColor() 
{
// TODO: Add your control notification handler code here
  int m_rgbColor=0;
  CColorDialog dlg(m_rgbColor);
  if( dlg.DoModal() == IDOK )
      m_rgbColor = dlg.GetColor();
  //在PICTURE控件显示所选的颜色(PICTURE的ID是IDC_COLOR)
}
多谢