]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dirdlg.cpp
support alpha channel in menu items bitmaps, too
[wxWidgets.git] / src / msw / dirdlg.cpp
index 622e34b051f5091c3c04f60846f6d84d1e6b1a69..d334ee245e8abe59fac5b2a7dea96b4b40182c74 100644 (file)
@@ -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