From 35c0fe4ca540b064a85b5d675b3f6a8cfa364d9d Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 17 Jan 2011 21:41:28 +0000 Subject: [PATCH] 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 --- src/gui/set/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/set/window.cpp b/src/gui/set/window.cpp index e5037e3c..9a0761e4 100644 --- a/src/gui/set/window.cpp +++ b/src/gui/set/window.cpp @@ -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;