Files
coco df489d5640 a
2026-07-03 16:05:30 +08:00

76 lines
2.2 KiB
C++

#if !defined(AFX_SAVEFILEPATHDLG_H__483053B5_1D8E_4F68_ABFB_BD122DBE8900__INCLUDED_)
#define AFX_SAVEFILEPATHDLG_H__483053B5_1D8E_4F68_ABFB_BD122DBE8900__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <imagehlp.h>
// SaveFilePathDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSaveFilePathDlg dialog
class CSaveFilePathDlg : public CDialog
{
// Construction
public:
CSaveFilePathDlg(int iAR,CWnd* pParent = NULL); // standard constructor
CStringArray m_TypeArray;//记录外面传进来的文件格式
CString m_TaskName;//记录任务名字
CString m_ProjectName;//记录工程名字
CString m_ZoneName;//记录测区名字
CString m_CurrentPath;//记录当前程序所在目录
BOOL bSig; //一个用于标记是否使用自定义路径的变量,用法见代码,TRUE表示使用自定义路径
CString m_szFileName;
// CString m_szTmpPathO;//一个记录临时路径的变量,用于比较m_szTmpPathT,具体见代码
// CString m_szTmpPathT;//一个记录临时路径的变量,用于比较,具体见代码
// Dialog Data
//{{AFX_DATA(CSaveFilePathDlg)
enum { IDD = IDD_SavePathDlg };
CString m_FilePath;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSaveFilePathDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSaveFilePathDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeFiletype();
afx_msg void OnBrowse();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CString GetFilePath();
public:
void SetFilePath(CString strFilePath){m_FilePath = strFilePath;}
CString GetSaveFilePath(){return m_FilePath;}
int GetSelFileType(){return m_iCurSel;}
void GetSaveFileResult(CString& strPath, BYTE& ucFileType){strPath = m_szFileName; ucFileType = m_ucResFlag;}
protected:
int m_iCurSel;
BYTE m_ucResFlag;
int m_iAR;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SAVEFILEPATHDLG_H__483053B5_1D8E_4F68_ABFB_BD122DBE8900__INCLUDED_)