X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf54972ea26c90aa5585ba62d39fcc0e14541d5b..42d11c8e66149da692edaddcffc4c67cfa7ca496:/src/msw/dirdlg.cpp diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index ceca8d1fe9..5f9006fa2b 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -5,7 +5,7 @@ // Modified by: // Created: 01/02/97 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem +// Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -42,6 +42,11 @@ #include "wx/msw/private.h" +#ifdef __WXWINCE__ +#include <winreg.h> +#include <objbase.h> +#include <shlguid.h> +#endif #include <shlobj.h> // Win95 shell // ---------------------------------------------------------------------------- @@ -60,6 +65,10 @@ #define BIF_NONEWFOLDERBUTTON 0x0200 #endif +#ifndef BIF_EDITBOX + #define BIF_EDITBOX 16 +#endif + // ---------------------------------------------------------------------------- // wxWindows macros // ---------------------------------------------------------------------------- @@ -131,7 +140,11 @@ int wxDirDialog::ShowModal() bi.hwndOwner = parent ? GetHwndOf(parent) : NULL; bi.pidlRoot = NULL; bi.pszDisplayName = NULL; +#ifdef __WXWINCE__ + 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 @@ -213,7 +226,9 @@ BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lp, LPARAM pData) // initial selection here // // wParam = TRUE => lParam is a string and not a PIDL +#ifndef __WXWINCE__ SendMessage(hwnd, BFFM_SETSELECTION, TRUE, pData); +#endif break; case BFFM_SELCHANGED: