Files
envi-code/SourceCode/Code2026/tg_shs/shs_public/DataStoreDlg.h
T
2026-09-28 15:28:50 +08:00

71 lines
1.7 KiB
C++

#if !defined(AFX_DATASTOREDLG_H__1B25F5C0_95E8_4311_960B_596FCDFD023C__INCLUDED_)
#define AFX_DATASTOREDLG_H__1B25F5C0_95E8_4311_960B_596FCDFD023C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DataStoreDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDataStoreDlg dialog
#include "Resource.h"
class CDataStore
{
public:
CDataStore(const TCHAR* szType, const TCHAR* szRemark):m_csType(szType), m_csRemark(szRemark){};
CString m_csType, m_csRemark;
};
class CDataStoreDlg : public CDialog
{
// Construction
public:
CDataStoreDlg(int type, const TCHAR* szCaption, CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDataStoreDlg)
enum { IDD = IDD_DATASTORE };
CListBox m_listStore;
CString m_csSel;
CString m_csDemo;
//}}AFX_DATA
CString m_csCaption;
int m_iType;
DList<CDataStore> m_lstStore;
XStringList m_lstType;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDataStoreDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDataStoreDlg)
virtual BOOL OnInitDialog();
virtual void OnOK();
afx_msg void OnSelchangeListStore();
afx_msg void OnButAdd();
afx_msg void OnButRemove();
afx_msg void OnDblclkListStore();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
// ÊÇ·ñΪÕûÊý
bool IsInteger(const CString &sText);
private:
CString m_csLen;
CString m_csWidth;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DATASTOREDLG_H__1B25F5C0_95E8_4311_960B_596FCDFD023C__INCLUDED_)