Menu

[r124]: / MyFileBrowser.h  Maximize  Restore  History

Download this file

46 lines (33 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
#include "afxdialogex.h"
// MyFileBrowser dialog
class MyFileBrowser : public CDialogEx
{
DECLARE_DYNAMIC(MyFileBrowser)
public:
MyFileBrowser(CWnd* pParent, CString strCaption); // standard constructor
virtual ~MyFileBrowser();
void setStartingDirectory(CString dir);
CMFCShellListCtrl m_wndShellList;
CMFCShellTreeCtrl m_wbdShellTree;
CString m_starting_folder;
CString m_filePath;
CString m_strCaption;
// Dialog Data
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG_FILE_BROWSER };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
afx_msg LRESULT OnChangeFolder(WPARAM,LPARAM);
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedOk();
//afx_msg void OnTvnSelchangedMfcshelltree1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBnClickedButtonUpFolder();
afx_msg void OnBnClickedButtonFolderHome();
CString getSelectedFilePath();
//afx_msg void OnLvnItemchangedMfcshelllist1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnLeftMouseClickList(NMHDR* pNotifyStruct, LRESULT* result);
};