77 lines
2.0 KiB
C++
77 lines
2.0 KiB
C++
#if !defined(AFX_EDITVPIPEDIMDLG_H__9764E913_1058_4B1D_BB56_CB672E1D4139__INCLUDED_)
|
|
#define AFX_EDITVPIPEDIMDLG_H__9764E913_1058_4B1D_BB56_CB672E1D4139__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "resource.h"
|
|
#include "MySpin.h"
|
|
class CEditVPipeDimDlg : public CDialog
|
|
{
|
|
|
|
public:
|
|
CEditVPipeDimDlg(CWnd* pParent = NULL);
|
|
|
|
void SetEditId(const AcDbObjectId &id);
|
|
//设置标注类型
|
|
//重新绑定立管和标注
|
|
void RenewDimInfo(const AcDbObjectId id);
|
|
|
|
// 绑定不成功时,重新绑定 zxl 2012.07.02 add
|
|
bool CheckRebindPipe(const AcDbObjectId id, AcGePoint3d &ptLoc);
|
|
void RebindPipeDim(AcDbObjectId &id, const AcGePoint3d &pt);
|
|
void SetRebindPipe(const AcDbObjectId id, const AcDbObjectId idPipe);
|
|
//{{AFX_DATA(CEditVPipeDimDlg)
|
|
enum { IDD = IDD_EDIT_VPIPE_DIM };
|
|
CComboBox m_cmbTextStyle;
|
|
CMySpin m_spinDimNum;
|
|
CSpinButtonCtrl m_spinTextHeight;
|
|
CString m_sTextStyle;
|
|
double m_dTextHeight;
|
|
CString m_sDimBefore;
|
|
double m_dDimR;
|
|
int m_nFloorType;
|
|
CString m_sFloorNum;
|
|
int m_nVPipeDimTypePic;
|
|
CString m_sDimNum;
|
|
double m_dDistDn;
|
|
//}}AFX_DATA
|
|
|
|
//{{AFX_VIRTUAL(CEditVPipeDimDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
//}}AFX_VIRTUAL
|
|
|
|
protected:
|
|
|
|
//{{AFX_MSG(CEditVPipeDimDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnDeltaposSpinVpipeDimNum(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnDeltaposSpinTextHeight(NMHDR* pNMHDR, LRESULT* pResult);
|
|
virtual void OnOK();
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnRadio1();
|
|
afx_msg void OnRadio2();
|
|
afx_msg void OnRadio3();
|
|
afx_msg void OnRadio4();
|
|
afx_msg void OnRadio5();
|
|
afx_msg BOOL PreTranslateMessage(MSG* pMsg);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
private:
|
|
//修改立管标注数据
|
|
BOOL ChangeVPipeDimData();
|
|
//判断是否存在相同编号立管
|
|
BOOL IsSameVPipeNum();
|
|
//绘制立管标注图片
|
|
void DrawSlidPic();
|
|
void EnableTextRect();
|
|
private:
|
|
AcDbObjectId m_id;
|
|
CToolTipCtrl m_wndToolTip;
|
|
};
|
|
|
|
#endif // !defined(AFX_EDITVPIPEDIMDLG_H__9764E913_1058_4B1D_BB56_CB672E1D4139__INCLUDED_)
|