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

Class CheckBoxOption

SampleApps/WebView2APISample/TextInputDialog.h:20–33  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected