A group of related checkboxes rendered together under an optional label. Use this to present a set of feature toggles that the user can independently check or uncheck. Each option gets its own Win32 BUTTON control with a unique control ID.
| 36 | // Use this to present a set of feature toggles that the user can independently check or |
| 37 | // uncheck. Each option gets its own Win32 BUTTON control with a unique control ID. |
| 38 | struct CheckBoxGroup |
| 39 | { |
| 40 | // Heading text above the checkboxes; if empty, no label is rendered. |
| 41 | std::wstring groupLabel; |
| 42 | // Checkbox options rendered top-to-bottom in vector order. |
| 43 | std::vector<CheckBoxOption> options; |
| 44 | |
| 45 | CheckBoxGroup(const std::wstring& groupLabel, std::vector<CheckBoxOption> options) |
| 46 | : groupLabel(groupLabel), options(std::move(options)) |
| 47 | { |
| 48 | } |
| 49 | }; |
| 50 | |
| 51 | // A multi-line text input area with a descriptive label above it. |
| 52 | // The label is rendered as a read-only EDIT (grey background, bordered) and |