| 177 | // field to the given value, and fill its dropdown with the color list. |
| 178 | |
| 179 | void 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. |
no test coverage detected