(defined(__HANDHELDPC__) && (_WIN32_WCE >= 500)))
#include "wx/dirdlg.h"
+#include "wx/testing.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#if wxUSE_DYNLIB_CLASS && !defined(__WXWINCE__)
#define wxUSE_IFILEDIALOG 1
#else
- #define wxUSE_IFILEDIALOG
+ #define wxUSE_IFILEDIALOG 0
#endif
#if wxUSE_IFILEDIALOG
int wxDirDialog::ShowModal()
{
+ WX_TESTING_SHOW_MODAL_HOOK();
+
wxWindow* const parent = GetParent();
WXHWND hWndParent = parent ? GetHwndOf(parent) : NULL;
#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();
}
SendMessage(hwnd, BFFM_SETSTATUSTEXT,
- 0, (LPARAM)strDir.wx_str());
+ 0, wxMSW_CONV_LPARAM(strDir));
}
}
break;