MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / SetEditColor

Function SetEditColor

wdialog.cpp:179–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177// field to the given value, and fill its dropdown with the color list.
178
179void SetEditColor(HWND hdlg, int id, KI ki, int nExtra)
180{
181 int i, iMax = cColor2 + (nExtra > 0)*(nExtra + 1);
182
183 SetEdit(id, SzColor(ki));
184 for (i = 0; i < iMax; i++) {
185 SetCombo(id, szColor[i]);
186 if (i == kWhite)
187 i += (cColor2 - cColor) + (nExtra >= 2)*nExtra;
188 }
189}
190
191
192// Return the contents of a dialog edit control as an integer value.

Callers 5

DlgColorFunction · 0.85
DlgAspectFunction · 0.85
DlgObjectFunction · 0.85
DlgObject2Function · 0.85
DlgObjectMFunction · 0.85

Calls 1

SzColorFunction · 0.85

Tested by

no test coverage detected