MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / OnClickColor

Method OnClickColor

WinArk/NumberValueDlg.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96LRESULT 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
108void CNumberValueDlg::DisplayValue(DWORD64 value, bool checkRadio) {
109 CString text;

Callers

nothing calls this directly

Calls 1

GetColorMethod · 0.80

Tested by

no test coverage detected