Files
envi-code/SourceCode/Code2026/Dimension/PrinciplePubFeedDlg.h
T
2026-09-28 15:28:50 +08:00

99 lines
2.2 KiB
C++

#if !defined(AFX_PRINCIPLEPUBFEEDDLG_H__266326F5_9AB8_4DC9_A390_483C5AE54E69__INCLUDED_)
#define AFX_PRINCIPLEPUBFEEDDLG_H__266326F5_9AB8_4DC9_A390_483C5AE54E69__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PrinciplePubFeedDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPrinciplePubFeedDlg dialog
#include "Resource.h"
#include "MySpin.h"
#include "WDGRID.h"
class TPubFeedFloorData
{
public:
CString m_csName;
int m_iNum;
double m_dNg;
double m_dQ;
};
class TPubFeedData
{
public:
CString m_csName;
int m_iNum;
double m_dHeight;
DList<TPubFeedFloorData> m_lstFloor;
};
class TGridPubFeed: public WDGrid
{
protected:
virtual void OnCurChanged();
public:
int m_iOld;
TGridPubFeed();
};
class CPrinciplePubFeedDlg : public CDialog
{
// Construction
public:
CPrinciplePubFeedDlg(int mode, CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPrinciplePubFeedDlg)
enum { IDD = IDD_PRINCIPLE_FEED_PUB };
CComboBox m_comboMat;
CMySpin m_spinLen;
double m_nLen;
double m_nFloorLen;
double m_nElevation;
BOOL m_bFloor;
int m_iMaterial;
//}}AFX_DATA
DList<TPubFeedData> m_lstData;
int m_iMode; // 0:¹²½¨ 1£º¹¤Òµ
WDGrid m_grid;
TGridPubFeed m_gridFloor;
static CString m_csMaterial;
void UpdateGrid();
void UpdateSanGrid();
void UpdateGrid2List();
void UpdateSanGrid2List();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPrinciplePubFeedDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CPrinciplePubFeedDlg)
virtual BOOL OnInitDialog();
afx_msg void OnButtonAdd();
afx_msg void OnPaint();
virtual void OnOK();
afx_msg void OnButtonDel();
afx_msg void OnButtonAdd2();
afx_msg void OnButtonDel2();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PRINCIPLEPUBFEEDDLG_H__266326F5_9AB8_4DC9_A390_483C5AE54E69__INCLUDED_)