| 108 | } |
| 109 | |
| 110 | void CColorBox::SelectColor() { |
| 111 | CColorDialog dlg(_context.SelectedColor, CC_FULLOPEN, *this); |
| 112 | if (dlg.DoModal() == IDOK) |
| 113 | _context.SelectedColor = dlg.GetColor(); |
| 114 | InvalidateRect(NULL); |
| 115 | } |
| 116 | |
| 117 | void CColorBox::SetColor(COLORREF color) { |
| 118 | _context.SelectedColor = color; |