From 58e0338a8cbcddcd55f890812a5fcac5a2ee580d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 10 Oct 2004 09:30:02 +0000 Subject: [PATCH] Fixed the change that broke eVC++ compile (please don't blind-fix this) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dirdlg.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index 622e34b051..d334ee245e 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -140,7 +140,13 @@ int wxDirDialog::ShowModal() bi.hwndOwner = parent ? GetHwndOf(parent) : NULL; bi.pidlRoot = NULL; bi.pszDisplayName = NULL; + // Please don't change this without checking it compiles + // with eVC++ first. +#if defined(__POCKETPC__) || defined(__SMARTPHONE__) + bi.lpszTitle = m_message.mb_str(); +#else bi.lpszTitle = m_message.c_str(); +#endif bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_STATUSTEXT; bi.lpfn = BrowseCallbackProc; bi.lParam = (LPARAM)m_path.c_str(); // param for the callback -- 2.50.0