Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

41 lines
1.1 KiB
C++

#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