-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
info_box.cpp
24 lines (20 loc) · 924 Bytes
/
info_box.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "stdafx.h"
namespace fbh {
void show_info_box(HWND wnd_parent, const char* p_title, const char* p_text, INT icon, uih::alignment text_alignment)
{
uih::InfoBox::g_run(wnd_parent, p_title, p_text, icon, modeless_dialog_manager::g_add,
modeless_dialog_manager::g_remove, text_alignment);
}
void show_info_box_threadsafe(
HWND wnd, const char* p_title, const char* p_text, INT oem_icon, uih::alignment text_alignment)
{
queue_main_thread_callback(
[title = pfc::string8{p_title}, text = pfc::string8{p_text}, wnd, oem_icon, text_alignment]() {
show_info_box(wnd ? wnd : core_api::get_main_window(), title, text, oem_icon, text_alignment);
});
}
void show_info_box_threadsafe(const char* p_title, const char* p_text, INT oem_icon, uih::alignment text_alignment)
{
show_info_box_threadsafe(nullptr, p_title, p_text, oem_icon, text_alignment);
}
} // namespace fbh