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
This commit is contained in:
Dimitri Schoolwerth
2014-04-24 23:25:10 +00:00
parent 1f287dc9c5
commit 97c3a5b698

View File

@@ -173,7 +173,7 @@ wxFileDialogHookFunction(HWND hDlg,
case WM_NOTIFY:
{
NMHDR* const pNM = reinterpret_cast<NMHDR*>(lParam);
if ( pNM->code >= CDN_FIRST && pNM->code < CDN_LAST )
if ( pNM->code > CDN_LAST && pNM->code <= CDN_FIRST )
{
OFNOTIFY* const
pNotifyCode = reinterpret_cast<OFNOTIFY *>(lParam);