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

121 lines
3.8 KiB
C++

#if !defined(AFX_OPCREATECESPTDLG_H__B5EF4421_C1DE_4E55_A736_8585C8452D55__INCLUDED_)
#define AFX_OPCREATECESPTDLG_H__B5EF4421_C1DE_4E55_A736_8585C8452D55__INCLUDED_
#include "ScriptCE.h"
#include "opcespt4pvesdlg.h"
#include "opcesptdipoledlg.h"
#include "opcespt3pvesdlg.h"
#include "opcesptrectgldlg.h"
#include "opcesptcustomdlg.h"
#include "DialCesptNew3PVes.h"
#include "EasySize.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// opcreatecesptdlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// COpCreateCESptDlg dialog
class CSptRecord;
class COpCreateCESptDlg : public CDialog
{
//DECLARE_EASYSIZE
// Construction
public:
COpCreateCESptDlg(CScriptCE* const pNewScript, CLinkList<CMedium*>* pMedLinkList, INT_PTR* pRet, CWnd* pParent = NULL); // standard constructor
COpCESpt4PVESDlg m_ceSpt4PVESDlg;
COpCESptDIPOLEDlg m_ceSptDIPOLEDlg;
COpCESpt3PVESDlg m_ceSpt3PVESDlg;
COpCESptRECTGLDlg m_ceSptRECTGLDlg;
COpCESptCUSTOMDlg m_ceSptCUSTOMDlg;
CDialCesptNew3PVes m_ceSptNew3PDlg;
// Dialog Data
//{{AFX_DATA(COpCreateCESptDlg)
enum { IDD = IDD_OP_CESPT_DB_C };
CListCtrl m_ceSptList;
CEdit m_edSName;
CEdit m_edScDesc;
CEdit m_edDefiner;
CTabCtrl m_ceSptTab;
CTime m_edDeDate;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COpCreateCESptDlg)
public:
virtual BOOL Create(UINT nID, CWnd* pParentWnd);
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(COpCreateCESptDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeSptCeTab(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBtnIns();
afx_msg void OnBtnUpd();
afx_msg void OnBtnDel();
afx_msg void OnItemchangedSptCeList(NMHDR* pNMHDR, LRESULT* pResult);
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CScriptCE* m_pNewScript;
CLinkList<CMedium*>* m_pMedLinkList;
INT_PTR* m_pRet;
CHandleProcessor m_handleProcessor;
int m_iCurTabSel;
BOOL Insert4PVESSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL InsertDipoleSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL InsertUnitProfileSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL InsertRECTGLSptRec(CChannel* pChannel);
BOOL InsertCUSTOMSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL InsertNew3PSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL Update4PVESSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL UpdateDipoleSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL UpdateUnityProfileSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL UpdateRECTGLSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL UpdateCUSTOMSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL UpdateNew3PVesSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL Delete4PVESSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL DeleteDipoleSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL DeleteUnityProfileSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL DeleteRECTGLSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL DeleteCUSTOMSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
BOOL DeleteNew3PVESSptRec(CSptRecord* pSptRecord, CChannel* pChannel);
void InitUIByLanguage(int iLanguage);
public:
CEdit* GetEdDefiner(){
return &m_edDefiner;
}
CEdit* GetEdScDesc(){
return &m_edScDesc;
}
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OPCREATECESPTDLG_H__B5EF4421_C1DE_4E55_A736_8585C8452D55__INCLUDED_)