From 3467bf2b41dfcc09e70b0a6a8c04b764d7c5b3b4 Mon Sep 17 00:00:00 2001 From: jiajia_deng <2894220@gmail.com> Date: Mon, 20 May 2019 22:14:15 +0800 Subject: [PATCH] Fixed #19 can't compile successfully under VS2017 Signed-off-by: jiajia_deng <2894220@gmail.com> --- tool_kits/ui_components/msgbox/msgbox.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tool_kits/ui_components/msgbox/msgbox.h b/tool_kits/ui_components/msgbox/msgbox.h index 448aa74c..ca9c713a 100644 --- a/tool_kits/ui_components/msgbox/msgbox.h +++ b/tool_kits/ui_components/msgbox/msgbox.h @@ -9,14 +9,20 @@ enum MsgBoxRet typedef std::function MsgboxCallback; +void ShowMsgBox(HWND hwnd, MsgboxCallback cb, + const std::wstring &content = L"", bool content_is_id = true, + const std::wstring &title = L"STRING_TIPS", bool title_is_id = true, + const std::wstring &yes = L"STRING_OK", bool btn_yes_is_id = true, + const std::wstring &no = L"", bool btn_no_is_id = false); + class MsgBox : public ui::WindowImplBase { public: friend void ShowMsgBox(HWND hwnd, MsgboxCallback cb, - const std::wstring &content = L"", bool content_is_id = true, - const std::wstring &title = L"STRING_TIPS", bool title_is_id = true, - const std::wstring &yes = L"STRING_OK", bool btn_yes_is_id = true, - const std::wstring &no = L"", bool btn_no_is_id = false); + const std::wstring &content, bool content_is_id, + const std::wstring &title, bool title_is_id, + const std::wstring &yes, bool btn_yes_is_id, + const std::wstring &no, bool btn_no_is_id); public: MsgBox(); virtual ~MsgBox();