#ifndef ZZG_CXMLTREEFILEDLG_2009_01_05 #define ZZG_CXMLTREEFILEDLG_2009_01_05 #pragma once #include "afxdlgs.h" #include "XMLTreeFileDlgHelper.h" #include "resource.h" class CXMLTreeFileDlg : public CFileDialog { public: CXMLTreeFileDlg(void); public: ~CXMLTreeFileDlg(void); protected: CXMLTreeFileDlgHelper m_dlghelper; // helper for file dialogs CEdit m_edit1; // edit control for preview CEdit m_edit2; // another for debug info CTreeCtrl m_tree;//tree control // Heplers CString GetTextPreview(LPCTSTR pszPath); void AddText(CEdit& wndEdit, LPCTSTR lpText, BOOL bClear=FALSE); void ShowFileInfo(); public: // Handle CDN_ notifications virtual void OnFileNameChange(); virtual void OnFolderChange(); virtual void OnTypeChange(); // Command/message/UI handlers/overrides // Zyu modify on 100721,支持64位 //virtual int DoModal(); virtual INT_PTR DoModal(); virtual BOOL OnInitDialog(); afx_msg void OnSize(UINT nType, int cx, int cy); // afx_msg void OnSelectAll(); // afx_msg void OnUpdateSelectAll(CCmdUI* pCmdUI); DECLARE_DYNAMIC(CXMLTreeFileDlg) DECLARE_MESSAGE_MAP() }; #endif