|
Windows C++ Library
|
#include <Path.hpp>
Public Types | |
| enum | DlgMode { OpenFile, SaveFile, SelectFile } |
Public Member Functions | |
| CPath () | |
| CPath (const tchar *pszPath) | |
| CPath (const CString &strSrc) | |
| CPath (const tstring &source) | |
| CPath (const tchar *pszDir, const tchar *pszFile) | |
| bool | Exists () const |
| bool | ReadOnly () const |
| bool | IsFolder () const |
| DWORD | Attributes () const |
| Get the attributes for the path. | |
| void | SetAttributes (DWORD attributes) |
| Set the attributes for the path. | |
| CString | Drive () const |
| CPath | Root () const |
| CPath | Directory () const |
| CString | FileName () const |
| CString | FileTitle () const |
| CString | FileExt () const |
| bool | Select (const CWnd &rParent, DlgMode eMode, const tchar *pszExts, const tchar *pszDefExt, const tchar *pszDir=NULL) |
| bool | SelectDir (const CWnd &rParent, const tchar *pszTitle, const tchar *pszDir=NULL) |
| bool | SelectComputer (const CWnd &rParent, const tchar *pszTitle) |
| void | ExpandVars () |
| tchar & | operator[] (size_t nChar) |
| CPath & | operator= (const tchar *pszSrc) |
| CPath & | operator= (const CString &strSrc) |
| CPath & | operator= (const tstring &source) |
| void | operator/= (const tchar *pszPath) |
| operator const tchar * () const | |
Static Public Member Functions | |
| static bool | SelectFiles (const CWnd &rParent, const tchar *pszExts, const tchar *pszDefExt, CStrArray &astrFiles) |
| static bool | SelectFiles (const CWnd &rParent, const tchar *pszExts, const tchar *pszDefExt, const tchar *pszDir, CStrArray &astrFiles) |
| static CPath | CurrentDir () |
| static CPath | ApplicationDir () |
| static CPath | ModuleDir () |
| static CPath | WindowsDir () |
| static CPath | SystemDir () |
| static CPath | TempDir () |
| static CPath | SpecialDir (int nCSIDL) |
| static CPath | ModuleDir (HMODULE hModule) |
| static CPath | Application () |
| static CPath | Module () |
| static CPath | Module (HMODULE hModule) |
Static Protected Member Functions | |
| static void | Normalise (tchar *pszPath) |
| static int CALLBACK | BrowseCallbackProc (HWND hWnd, UINT uMsg, LPARAM lParam, LPARAM lpData) |
Friends | |
| CPath | Append (const CPath &strLHS, const tchar *pszRHS) |
| bool | Equals (const CPath &strLHS, const tchar *pszRHS) |
| enum CPath::DlgMode |
| CPath::CPath | ( | ) |
| CPath::CPath | ( | const tchar * | pszPath | ) |
| CPath::CPath | ( | const CString & | strSrc | ) |
| CPath::CPath | ( | const tstring & | source | ) |
| CPath::CPath | ( | const tchar * | pszDir, |
| const tchar * | pszFile | ||
| ) |
| bool CPath::Exists | ( | ) | const |
| bool CPath::ReadOnly | ( | ) | const |
| bool CPath::IsFolder | ( | ) | const |
| DWORD CPath::Attributes | ( | ) | const |
Get the attributes for the path.
| void CPath::SetAttributes | ( | DWORD | attributes | ) |
Set the attributes for the path.
| CString CPath::Drive | ( | ) | const |
| CPath CPath::Root | ( | ) | const |
| CPath CPath::Directory | ( | ) | const |
| CString CPath::FileName | ( | ) | const |
| CString CPath::FileTitle | ( | ) | const |
| CString CPath::FileExt | ( | ) | const |
| bool CPath::Select | ( | const CWnd & | rParent, |
| DlgMode | eMode, | ||
| const tchar * | pszExts, | ||
| const tchar * | pszDefExt, | ||
| const tchar * | pszDir = NULL |
||
| ) |
| bool CPath::SelectDir | ( | const CWnd & | rParent, |
| const tchar * | pszTitle, | ||
| const tchar * | pszDir = NULL |
||
| ) |
| bool CPath::SelectComputer | ( | const CWnd & | rParent, |
| const tchar * | pszTitle | ||
| ) |
| bool CPath::SelectFiles | ( | const CWnd & | rParent, |
| const tchar * | pszExts, | ||
| const tchar * | pszDefExt, | ||
| CStrArray & | astrFiles | ||
| ) | [static] |
| bool CPath::SelectFiles | ( | const CWnd & | rParent, |
| const tchar * | pszExts, | ||
| const tchar * | pszDefExt, | ||
| const tchar * | pszDir, | ||
| CStrArray & | astrFiles | ||
| ) | [static] |
| void CPath::ExpandVars | ( | ) |
| CPath CPath::CurrentDir | ( | ) | [static] |
| CPath CPath::ApplicationDir | ( | ) | [static] |
| CPath CPath::ModuleDir | ( | ) | [static] |
| CPath CPath::WindowsDir | ( | ) | [static] |
| CPath CPath::SystemDir | ( | ) | [static] |
| CPath CPath::TempDir | ( | ) | [static] |
| CPath CPath::SpecialDir | ( | int | nCSIDL | ) | [static] |
| CPath CPath::ModuleDir | ( | HMODULE | hModule | ) | [static] |
| CPath CPath::Application | ( | ) | [static] |
| CPath CPath::Module | ( | ) | [static] |
| CPath CPath::Module | ( | HMODULE | hModule | ) | [static] |
| tchar & CPath::operator[] | ( | size_t | nChar | ) | [inline] |
Reimplemented from CString.
| void CPath::operator/= | ( | const tchar * | pszPath | ) |
| CPath::operator const tchar * | ( | ) | const [inline] |
Reimplemented from CString.
| void CPath::Normalise | ( | tchar * | pszPath | ) | [static, protected] |
| int CALLBACK CPath::BrowseCallbackProc | ( | HWND | hWnd, |
| UINT | uMsg, | ||
| LPARAM | lParam, | ||
| LPARAM | lpData | ||
| ) | [static, protected] |
1.7.6.1