From 37ba576b4a302e835f2144281a3f6cbb2578a12f 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/trunk@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 12d0414ee5..002be5a5d7 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);