MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / CheckBoxGroup

Class CheckBoxGroup

SampleApps/WebView2APISample/TextInputDialog.h:38–49  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
38struct 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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected