forked from MicrosoftEdge/WebView2Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextInputDialog.h
More file actions
31 lines (25 loc) · 781 Bytes
/
TextInputDialog.h
File metadata and controls
31 lines (25 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (C) Microsoft Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "stdafx.h"
#include <string>
// Constructing this struct will show a text input dialog and return when they user
// dismisses it. If the user clicked the OK button, confirmed will be true and input will
// be set to the input they entered.
struct TextInputDialog
{
TextInputDialog(
HWND parent,
PCWSTR title,
PCWSTR prompt,
PCWSTR description,
const std::wstring& defaultInput = L"",
bool readOnly = false);
PCWSTR title;
PCWSTR prompt;
PCWSTR description;
bool readOnly;
bool confirmed;
std::wstring input;
};