79 lines
2.1 KiB
C++
79 lines
2.1 KiB
C++
#if !defined(AFX_SLOPEROOFDLG_H__DCDA6404_0CDD_11D2_81C9_0000E82EB017__INCLUDED_)
|
|
#define AFX_SLOPEROOFDLG_H__DCDA6404_0CDD_11D2_81C9_0000E82EB017__INCLUDED_
|
|
|
|
//{{AFX_INCLUDES()
|
|
//#include "TrueDbGrid50.h"
|
|
//}}AFX_INCLUDES
|
|
#include "DbSlopeRoof.h"
|
|
#include "WDGrid.h"
|
|
#include "DbSlopeRoof.h"
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
// SlopeRoofDlg.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CSlopeRoofDlg dialog
|
|
class TSlopeRoofGrid : public WDGrid
|
|
{
|
|
public:
|
|
TSlopeRoofGrid();
|
|
void SetModify( BOOL bModify = FALSE );
|
|
BOOL GetModify();
|
|
long m_CurRow,m_CurCol;
|
|
protected:
|
|
BOOL m_bModify;
|
|
virtual void OnCellComboString(WDGridCell &cell,CComboBox&combo);
|
|
virtual void OnDataChanged();
|
|
virtual void OnCurChanged();
|
|
virtual bool OnBeforeEdit(WDGridCell&cell,bool &bModified);
|
|
virtual bool OnModified(WDGridCell&cell,CString &text);
|
|
};
|
|
class CSlopeRoofDlg : public GlwCAcUiDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CSlopeRoofDlg(const TSlopeRoof &src,TDbSlopeRoof *p,int nEdgePick, CWnd* pParent); // standard constructor
|
|
DECLARE_DYNAMIC(CSlopeRoofDlg)
|
|
|
|
long m_CurIndex;
|
|
BOOL m_bFlag;
|
|
TSlopeRoofGrid m_grid;
|
|
void InitGrid();
|
|
void UpdateGrid();
|
|
void ReadData();
|
|
// Dialog Data
|
|
//{{AFX_DATA(CSlopeRoofDlg)
|
|
enum { IDD = IDD_ROOF };
|
|
//}}AFX_DATA
|
|
double m_dElveMove;//´´½¨µÄµ×±ê¸ß²ÎÁ¿// [2/19/2008 nsh]
|
|
TSlopeRoof m_RoofData;
|
|
TDbSlopeRoof *m_pRoof;
|
|
long m_nCurIndex;
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CSlopeRoofDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CSlopeRoofDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnEqslope();
|
|
virtual void OnOK();
|
|
afx_msg void OnButtonApp();
|
|
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_SLOPEROOFDLG_H__DCDA6404_0CDD_11D2_81C9_0000E82EB017__INCLUDED_)
|