8#include "../macros.hpp"
9#include "win32_error_intf.hpp"
13#include <system_error>
15hi_export_module(hikogui.win32 : winuser);
17namespace hi {
inline namespace v1 {
19inline std::expected<UINT, win32_error> win32_MessageBox(HWND handle, std::string_view text, std::string_view caption, UINT type)
noexcept
31 auto const r = MessageBoxW(handle, wtext->c_str(), wcaption->c_str(), type);
Rules for working with win32 headers.
The HikoGUI namespace.
Definition array_generic.hpp:20
std::expected< std::wstring, win32_error > win32_MultiByteToWideChar(std::string_view s, unsigned int code_page=CP_UTF8, uint32_t flags=0) noexcept
Convert a win32-API compatible std::wstring to a multi-byte std::string.
Definition stringapiset.hpp:58
DOXYGEN BUG.
Definition algorithm_misc.hpp:20