| 12 | #include <afxwin.h> |
| 13 | |
| 14 | class CFolderDialog |
| 15 | { |
| 16 | friend static int CALLBACK BrowseDirectoryCallback( |
| 17 | HWND hWnd, UINT uMsg, LPARAM lParam, LPARAM lpData); |
| 18 | |
| 19 | public: |
| 20 | // disallow copying |
| 21 | CFolderDialog(CFolderDialog const&) = delete; |
| 22 | void operator=(CFolderDialog const&) = delete; |
| 23 | |
| 24 | CFolderDialog( LPCTSTR lpszFolderName = NULL, |
| 25 | DWORD dwFlags = NULL/*BIF_RETURNONLYFSDIRS*/, |
| 26 | CWnd* pParentWnd = NULL); |
| 27 | virtual ~CFolderDialog(); |
| 28 | virtual int DoModal(); |
| 29 | CString GetPathName() const; |
| 30 | |
| 31 | protected: |
| 32 | virtual void OnInitDialog(); |
| 33 | virtual void OnSelChanged(ITEMIDLIST* pIdl); |
| 34 | virtual void CallbackFunction(HWND hWnd, UINT uMsg, LPARAM lParam); |
| 35 | |
| 36 | void EnableOK(BOOL bEnable = TRUE); |
| 37 | void SetSelection(LPCTSTR pszSelection); |
| 38 | void SetSelection(ITEMIDLIST* pIdl); |
| 39 | void SetStatusText(LPCTSTR pszStatusText); |
| 40 | CString ShortName(const CString& strName); |
| 41 | |
| 42 | public: |
| 43 | BROWSEINFO m_bi; |
| 44 | |
| 45 | protected: |
| 46 | CString m_strInitialFolderName; |
| 47 | CString m_strFinalFolderName; |
| 48 | |
| 49 | TCHAR m_szDisplayName[MAX_PATH]; |
| 50 | TCHAR m_szPath[MAX_PATH]; |
| 51 | |
| 52 | HWND m_hDialogBox; |
| 53 | |
| 54 | CString m_strTitleHolder; |
| 55 | |
| 56 | |
| 57 | }; |
| 58 | |
| 59 | #endif // _CFolderDialog_ |
nothing calls this directly
no outgoing calls
no test coverage detected