#ifndef _CWALLPARTDLG_H_ #define _CWALLPARTDLG_H_ #include "resource.h" #include "TDbWall.h" class CWallPartDlg : public WGroupDlg { DECLARE_DYNAMIC(CWallPartDlg) public: CWallPartDlg(CWnd* pParent = NULL); ~CWallPartDlg(); enum {IDD = IDD_DLG_PARTWALL}; double GetLeftWidth(); //左宽 double GetRightWidth(); //右宽 double GetHeight(); //高度 double GetElevation(); //底高 TWallData::TWallStyle GetMaterialStyle(CString &sT20Mat);//材料 TWallData::UsageFlag GetUsage(); //用途 int GetLeftKeep(); //左侧保温 int GetRightKeep(); //右侧保温 BOOL GetIsLeft(); //是否左侧保温 BOOL GetIsRight(); //是否右侧保温 BOOL GetIsTwoSide(); //是否两侧保温 void SetWallPoint(TDbWall *pWall); //选取的墙体指针赋值给对话框 protected: virtual BOOL OnInitDialog(); virtual void DoDataExchange(CDataExchange* pDX); DECLARE_MESSAGE_MAP() public: afx_msg void OnBlkLeftWidth(); afx_msg void OnBlkRightWidth(); afx_msg void OnBlkHeight(); afx_msg void OnBlkElevation(); afx_msg void OnBlkMaterial(); afx_msg void OnBlkUsing(); afx_msg void OnBlkLeftKeep(); afx_msg void OnBlkRightKeep(); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg void OnDeltaposSpinLeftwidth(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnDeltaposSpinRightwidth(NMHDR *pNMHDR, LRESULT *pResult); static BOOL m_bChkLeft; //复选框左宽 static BOOL m_bChkRight; //复选框右宽 static BOOL m_bChkHeight; //复选框高度 static BOOL m_bChkElev; //复选框底高 static BOOL m_bChkMaterial; //复选框材料 static BOOL m_bChkUsing; //复选框用途 static BOOL m_bChkLeftKeep; //复选框左侧保温 static BOOL m_bChkRightKeep; //复选框右侧保温 static BOOL m_bChkTwoSide; //两侧保温 static BOOL m_bgroupStatus; // static CString m_strHeight; //高度 static CString m_strElev; //底高 static int m_iMaterial; //材料 static int m_iUsing; //用途 static int m_iLeftKeep; //左侧保温厚 static int m_iRigntKeep; //右侧保温厚 static int m_iLeft; //左宽 static int m_iRight; //右宽 CEdit m_edtLeft; //左宽对象 CEdit m_edtRight; //右宽对象 CSpinButtonCtrl m_spinLeft; //左宽spin按钮 CSpinButtonCtrl m_spinRight; //右宽spin按钮 WGroupCtrl m_group; TDbWall *m_pWall; }; #endif