78 lines
2.1 KiB
C++
78 lines
2.1 KiB
C++
#if !defined(AFX_EDITENVELOPDLG_H__FD117EA4_EA0C_11D1_818D_0000E82EB017__INCLUDED_)
|
|
#define AFX_EDITENVELOPDLG_H__FD117EA4_EA0C_11D1_818D_0000E82EB017__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
// EditEnvelopDlg.h : header file
|
|
//
|
|
|
|
|
|
class TDbBlockWrap;
|
|
class TDbBlockInsert;
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CEditBlockWrapDlg dialog
|
|
|
|
class CEditBlockWrapDlg : public CModelessDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
DECLARE_DYNAMIC(CEditBlockWrapDlg)
|
|
CEditBlockWrapDlg(CWnd* pParent = NULL); // standard constructor
|
|
void SetFromBlockInfo(AcDbObjectId idInsert);
|
|
void UpdateInsert(AcDbObjectId idInsert) const;
|
|
void UpdateScales();
|
|
void UpdateSizes();
|
|
// Dialog Data
|
|
//{{AFX_DATA(CEditBlockWrapDlg)
|
|
enum { IDD = IDD_EDIT_ENVELOP };
|
|
CString m_csRotation;
|
|
CString m_csScaleX;
|
|
CString m_csScaleY;
|
|
CString m_csScaleZ;
|
|
CString m_nSizeX;
|
|
CString m_nSizeY;
|
|
CString m_nSizeZ;
|
|
BOOL m_bEqualScale;
|
|
//}}AFX_DATA
|
|
|
|
static int m_nFixMethod;
|
|
static int m_nInputMethod;
|
|
|
|
XPoint m_ptBase, m_ptCen;
|
|
double m_nOldSizeX, m_nOldSizeY, m_nOldSizeZ;
|
|
double m_nOldScaleX, m_nOldScaleY, m_nOldScaleZ;
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CEditBlockWrapDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CEditBlockWrapDlg)
|
|
virtual void OnOK();
|
|
virtual void OnCancel();
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnInputSize();
|
|
afx_msg void OnInputScale();
|
|
// Zyu delete on 100716,对应的控件已删除
|
|
//afx_msg void OnKillfocusScalex();
|
|
//afx_msg void OnKillfocusScaley();
|
|
//afx_msg void OnKillfocusScalez();
|
|
afx_msg void OnKillfocusSizex();
|
|
afx_msg void OnKillfocusSizey();
|
|
afx_msg void OnKillfocusSizez();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_EDITENVELOPDLG_H__FD117EA4_EA0C_11D1_818D_0000E82EB017__INCLUDED_)
|