X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6bb09706724534c42465f9ecf46a4a7e7ff08c30..9869c26285dc51d13607cddaa04f65ce983653a5:/include/wx/msw/wrapshl.h diff --git a/include/wx/msw/wrapshl.h b/include/wx/msw/wrapshl.h index 3a0e143d76..8826a039ba 100644 --- a/include/wx/msw/wrapshl.h +++ b/include/wx/msw/wrapshl.h @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 2004-10-19 -// RCS-ID: $Id$ // Copyright: (c) 2004 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -12,14 +11,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 +71,7 @@ public: wxString path; if ( !SHGetPathFromIDList(m_pidl, wxStringBuffer(path, MAX_PATH)) ) { - wxLogLastError(_T("SHGetPathFromIDList")); + wxLogLastError(wxT("SHGetPathFromIDList")); } return path; @@ -74,8 +80,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_