added wxStandardPaths::GetDocumentsDir() (patch 1214360)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -68,6 +68,10 @@ static const wxChar *TRACE_MASK = _T("stdpaths");
|
||||
#define CSIDL_PROGRAM_FILES 0x0026
|
||||
#endif
|
||||
|
||||
#ifndef CSIDL_PERSONAL
|
||||
#define CSIDL_PERSONAL 0x0005
|
||||
#endif
|
||||
|
||||
#ifndef SHGFP_TYPE_CURRENT
|
||||
#define SHGFP_TYPE_CURRENT 0
|
||||
#endif
|
||||
@@ -75,7 +79,6 @@ static const wxChar *TRACE_MASK = _T("stdpaths");
|
||||
#ifndef SHGFP_TYPE_DEFAULT
|
||||
#define SHGFP_TYPE_DEFAULT 1
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// module globals
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -262,6 +265,11 @@ wxString wxStandardPaths::GetAppDir()
|
||||
return fn.GetPath();
|
||||
}
|
||||
|
||||
wxString wxStandardPaths::GetDocumentsDir() const
|
||||
{
|
||||
return DoGetDirectory(CSIDL_PERSONAL);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// public functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user