mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
task dialog only works on new windows versions
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1619 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -360,7 +360,7 @@ void SetWindow::onClose(wxCloseEvent& ev) {
|
||||
|
||||
|
||||
int ask_save_changes_impl(wxWindow* parent, String const& message, String const& title) {
|
||||
#if defined(__WXMSW__) && defined(UNICODE)
|
||||
#if defined(__WXMSW__) && defined(UNICODE) && defined(TD_WARNING_ICON) // the last one is a hack to test for precense of TASKDIALOG stuff
|
||||
// Do we have the TaskDialogIndirect function?
|
||||
HMODULE h = ::LoadLibrary(L"comctl32.dll");
|
||||
if (!h) return 0;
|
||||
|
||||
Reference in New Issue
Block a user