a
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
#if !defined(AFX_SAVESPCFILEPATH_H__4D899926_E613_433E_A597_2E88379AB7D3__INCLUDED_)
|
||||
#define AFX_SAVESPCFILEPATH_H__4D899926_E613_433E_A597_2E88379AB7D3__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// SaveSpcFilePath.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CSaveSpcFilePath dialog
|
||||
|
||||
class CSaveSpcFilePath : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CSaveSpcFilePath(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CSaveSpcFilePath)
|
||||
enum { IDD = IDD_DIALOG_SAVE_SPC_FILE };
|
||||
CComboBox m_cmdSaveModel;
|
||||
CString m_FilePath;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CSaveSpcFilePath)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CSaveSpcFilePath)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnButtonBrowse();
|
||||
virtual void OnOK();
|
||||
afx_msg void OnSelchangeComboModel();
|
||||
//}}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;}
|
||||
int GetSaveModel(){return m_iCurSel;}
|
||||
public:
|
||||
CStringArray m_TypeArray;//记录外面传进来的文件格式
|
||||
CString m_TaskName;//记录任务名字
|
||||
CString m_ProjectName;//记录工程名字
|
||||
CString m_ZoneName;//记录测区名字
|
||||
CString m_CurrentPath;//记录当前程序所在目录
|
||||
BOOL bSig; //一个用于标记是否使用自定义路径的变量,用法见代码,TRUE表示使用自定义路径
|
||||
|
||||
CString m_szFileName;
|
||||
protected:
|
||||
int m_iCurSel;
|
||||
BYTE m_ucResFlag;
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_SAVESPCFILEPATH_H__4D899926_E613_433E_A597_2E88379AB7D3__INCLUDED_)
|
||||
Reference in New Issue
Block a user