X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6bb09706724534c42465f9ecf46a4a7e7ff08c30..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/msw/wrapshl.h diff --git a/include/wx/msw/wrapshl.h b/include/wx/msw/wrapshl.h index 3a0e143d76..25585112e1 100644 --- a/include/wx/msw/wrapshl.h +++ b/include/wx/msw/wrapshl.h @@ -12,14 +12,21 @@ #ifndef _WX_MSW_WRAPSHL_H_ #define _WX_MSW_WRAPSHL_H_ +#include "wx/msw/wrapwin.h" + #ifdef __WXWINCE__ #include #include #include + #include #endif #include +#include "wx/msw/winundef.h" + +#include "wx/log.h" + // ---------------------------------------------------------------------------- // wxItemIdList implements RAII on top of ITEMIDLIST // ---------------------------------------------------------------------------- @@ -65,7 +72,7 @@ public: wxString path; if ( !SHGetPathFromIDList(m_pidl, wxStringBuffer(path, MAX_PATH)) ) { - wxLogLastError(_T("SHGetPathFromIDList")); + wxLogLastError(wxT("SHGetPathFromIDList")); } return path; @@ -74,8 +81,15 @@ public: private: LPITEMIDLIST m_pidl; - DECLARE_NO_COPY_CLASS(wxItemIdList) + wxDECLARE_NO_COPY_CLASS(wxItemIdList); }; +// enable autocompleting filenames in the text control with given HWND +// +// this only works on systems with shlwapi.dll 5.0 or later +// +// implemented in src/msw/utilsgui.cpp +extern bool wxEnableFileNameAutoComplete(HWND hwnd); + #endif // _WX_MSW_WRAPSHL_H_