A single checkbox option within a group. Holds a display label, an integer value returned to the caller when selected, and a flag indicating whether the checkbox should be pre-checked when the dialog is shown.
| 18 | // value returned to the caller when selected, and a flag indicating whether |
| 19 | // the checkbox should be pre-checked when the dialog is shown. |
| 20 | struct CheckBoxOption |
| 21 | { |
| 22 | // The text displayed next to the checkbox. |
| 23 | std::wstring label; |
| 24 | // Application-defined integer identifying the feature this checkbox represents. |
| 25 | int value; |
| 26 | // Pre-checked on show if true; reflects user's final check state after OK. |
| 27 | bool isSelected; |
| 28 | |
| 29 | CheckBoxOption(const std::wstring& label, int value, bool isSelected = false) |
| 30 | : label(label), value(value), isSelected(isSelected) |
| 31 | { |
| 32 | } |
| 33 | }; |
| 34 | |
| 35 | // A group of related checkboxes rendered together under an optional label. |
| 36 | // Use this to present a set of feature toggles that the user can independently check or |
nothing calls this directly
no outgoing calls
no test coverage detected