2012-11-01 15:19:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-03-22 21:14:19 +00:00
|
|
|
#include <string>
|
2013-07-29 04:01:49 +00:00
|
|
|
#include "Common/CommonWindows.h"
|
2024-09-26 08:48:31 +00:00
|
|
|
#include "Common/Common.h"
|
|
|
|
|
|
|
|
enum class InputBoxFlags {
|
|
|
|
Default = 0,
|
|
|
|
Selected = 1,
|
|
|
|
PasswordMasking = 2,
|
|
|
|
};
|
|
|
|
ENUM_CLASS_BITOPS(InputBoxFlags);
|
2013-08-26 17:00:16 +00:00
|
|
|
|
|
|
|
// All I/O is in UTF-8
|
2024-09-26 08:48:31 +00:00
|
|
|
bool InputBox_GetString(HINSTANCE hInst, HWND hParent, const wchar_t *title, const std::string &defaultvalue, std::string &outvalue, InputBoxFlags flags = InputBoxFlags::Default);
|
2013-08-26 17:00:16 +00:00
|
|
|
bool InputBox_GetHex(HINSTANCE hInst, HWND hParent, const wchar_t *title, u32 defaultvalue, u32 &outvalue);
|
2023-06-19 21:22:44 +00:00
|
|
|
|
|
|
|
bool UserPasswordBox_GetStrings(HINSTANCE hInst, HWND hParent, const wchar_t *title, std::string *username, std::string *password);
|