14#if DL_PLATFORM == DL_PLATFORM_WIN32
28 operator bool() {
return _has; }
36 std::string_view cmd = {},
37 std::string_view work_path = {});
48 std::string
SearchPathX(std::string_view path_child,
int type);
59 inline std::string
to_string(
const CStringA& str)
61 return { str.GetString(), str.GetString() + (size_t)str.GetLength() };
63 inline std::string
to_string(
const CStringW& str)
67 inline CStringW to_CStringW(std::string_view str)
72 std::string GetUIText(
T& wnd)
75 wnd.GetWindowTextW(str);
79 void SetUIText(
T& wnd, std::string_view str)
83 inline bool GetUICheck(CButton& btn)
85 return btn.GetCheck() == BST_CHECKED;
87 inline void SetUICheck(CButton& btn,
bool select)
89 btn.SetCheck(select ? BST_CHECKED : BST_UNCHECKED);
SystemMutex(std::string_view name)
std::string WideCharToUtf8(std::wstring_view str)
字符串转换:宽字符 -> utf8
std::wstring Utf8ToWideChar(std::string_view str)
字符串转换:utf8 -> 宽字符
bool OpenUrl(std::string_view url, std::string_view cmd={}, std::string_view work_path={})
打开网页、文件夹、文件、程序
Size GetWorkArea()
返回工作区大小(请优先使用glfw)
Size GetDesktopSize()
返回桌面大小(请优先使用glfw)
std::string SearchPathX(std::string_view path_child, int type)
常见路径搜索
std::string to_string(T v)
to_string包装