#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);
};