| 94 | } |
| 95 | |
| 96 | LRESULT CNumberValueDlg::OnClickColor(WORD, WORD id, HWND, BOOL&) { |
| 97 | CString text; |
| 98 | GetDlgItemText(IDC_VALUE, text); |
| 99 | bool error; |
| 100 | auto value = ParseValue(text, error); |
| 101 | CColorDialog dlg((COLORREF)value, CC_RGBINIT); |
| 102 | if (dlg.DoModal() == IDOK && !m_ReadOnly) { |
| 103 | DisplayValue(dlg.GetColor(), false); |
| 104 | } |
| 105 | return 0; |
| 106 | } |
| 107 | |
| 108 | void CNumberValueDlg::DisplayValue(DWORD64 value, bool checkRadio) { |
| 109 | CString text; |