From 97c3a5b6989c579f3b2d8dbdd687958f20b2d774 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Thu, 24 Apr 2014 23:25:10 +0000 Subject: [PATCH] Fixed wxFileDialog::MSWOnInitDone and wxFileDialog::MSWOnSelChange never being called. A condition was checking for the wrong CDN_XXX message range resulting in CDN_INITDONE and CDN_SELCHANGE no longer being processed. Broken since r75937 (branches/WX_3_0_BRANCH/) and r75941 (trunk/). See #16003. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/filedlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index 15db452bae..4529cd25e1 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -173,7 +173,7 @@ wxFileDialogHookFunction(HWND hDlg, case WM_NOTIFY: { NMHDR* const pNM = reinterpret_cast(lParam); - if ( pNM->code >= CDN_FIRST && pNM->code < CDN_LAST ) + if ( pNM->code > CDN_LAST && pNM->code <= CDN_FIRST ) { OFNOTIFY* const pNotifyCode = reinterpret_cast(lParam);