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:
twanvl
2011-01-17 21:41:28 +00:00
parent bb1def3d69
commit 35c0fe4ca5
+1 -1
View File
@@ -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;