X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f797518e8f30a98cf778a84c23132b77869c0e60..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/msw/dirdlg.cpp?ds=sidebyside diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index d17cdc7f0f..1760eb8d91 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -30,6 +30,7 @@ (defined(__HANDHELDPC__) && (_WIN32_WCE >= 500))) #include "wx/dirdlg.h" +#include "wx/testing.h" #ifndef WX_PRECOMP #include "wx/utils.h" @@ -50,7 +51,7 @@ #if wxUSE_DYNLIB_CLASS && !defined(__WXWINCE__) #define wxUSE_IFILEDIALOG 1 #else - #define wxUSE_IFILEDIALOG + #define wxUSE_IFILEDIALOG 0 #endif #if wxUSE_IFILEDIALOG @@ -220,6 +221,8 @@ void wxDirDialog::SetPath(const wxString& path) int wxDirDialog::ShowModal() { + WX_TESTING_SHOW_MODAL_HOOK(); + wxWindow* const parent = GetParent(); WXHWND hWndParent = parent ? GetHwndOf(parent) : NULL; @@ -263,7 +266,7 @@ int wxDirDialog::ShowSHBrowseForFolder(WXHWND owner) #endif bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_STATUSTEXT; bi.lpfn = BrowseCallbackProc; - bi.lParam = (LPARAM)m_path.wx_str(); // param for the callback + bi.lParam = wxMSW_CONV_LPARAM(m_path); // param for the callback static const int verComCtl32 = wxApp::GetComCtl32Version(); @@ -490,7 +493,7 @@ BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lp, LPARAM pData) } SendMessage(hwnd, BFFM_SETSTATUSTEXT, - 0, (LPARAM)strDir.wx_str()); + 0, wxMSW_CONV_LPARAM(strDir)); } } break;