Commit 2afba745 authored by twanvl's avatar twanvl

task dialog only works on new windows versions

parent a2b73064
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment