#include "stdafx.h" #include #include "rMsgBox.h" #ifndef QT_UI rMessageDialog::rMessageDialog(void *parent, const std::string& msg, const std::string& title , long style ) { handle = reinterpret_cast(new wxMessageDialog( reinterpret_cast(parent) , fmt::FromUTF8(msg) , fmt::FromUTF8(title) , style )); } rMessageDialog::~rMessageDialog() { delete reinterpret_cast(handle); } long rMessageDialog::ShowModal() { return reinterpret_cast(handle)->ShowModal(); } long rMessageBox(const std::string& message, const std::string& title, long style) { return wxMessageBox(fmt::FromUTF8(message), fmt::FromUTF8(title),style); } #endif