X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6bb09706724534c42465f9ecf46a4a7e7ff08c30..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/msw/wrapshl.h?ds=sidebyside 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_