Files
envi-code/SourceCode/Code2026/tg_shs/shs_kerncmd/LinePatternDlg.h
T
2026-09-28 15:28:50 +08:00

90 lines
2.3 KiB
C++

#if !defined(AFX_GRAPHICDLG_H__4A836E38_954F_4098_B4F3_6E8AEC0415C4__INCLUDED_)
#define AFX_GRAPHICDLG_H__4A836E38_954F_4098_B4F3_6E8AEC0415C4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GraphicDlg.h : header file
//
#include "Resource.h"
#include <adui.h>
#include <acui.h>
/////////////////////////////////////////////////////////////////////////////
// CGraphicDlg dialog
class CGraphicDlg : public CModelessDialog
{
// Construction
DECLARE_DYNAMIC(CGraphicDlg)
public:
CGraphicDlg(CWnd* pParent = NULL); // standard constructor
~CGraphicDlg();
// Dialog Data
//{{AFX_DATA(CGraphicDlg)
enum { IDD = IDD_GRAPHIC };
CComboBox m_combNameList;
static CString s_strWidth;
static int s_iAlign,s_iBase;
static double s_fRatio;
static BOOL s_bUseRatio;
//}}AFX_DATA
// AcDbObjectId m_idRail;
BOOL m_bRail;
static BOOL m_bDynamic;
BOOL m_bUserEsc;
int m_nOperCode;//0 用户输入的CANCLE;1 图案宽度;2单元对齐,基线位置,或编辑框
CString m_csCurPattern;
XPoly2D m_polyPath;
CImageDC m_image;
static int g_nCurSel;
PickSet m_pickSet;//记忆当前要修改的实体
void DoDrawing(int nCurSel);
void SetGraphicWidth();
void UpdatePickSet();//修改数据库中实体
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGraphicDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void ShowSlide(int idx);
// Generated message map functions
//{{AFX_MSG(CGraphicDlg)
afx_msg void OnGraphicWidth();
virtual BOOL OnInitDialog();
afx_msg void OnButtonPath();
afx_msg void OnButtonDynamic();
afx_msg void OnPaint();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnPatternSlide();
afx_msg void OnCheckRatio();
afx_msg void OnKillFocusWidth();
afx_msg void OnClose();
afx_msg void OnRadioUp();
afx_msg void OnRadioMiddle();
afx_msg void OnRadioDown();
afx_msg void OnRadioAlignMid();
afx_msg void OnRadioAlignLeft();
afx_msg void OnRadioAlignRight();
afx_msg void OnKillFocusRatio();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GRAPHICDLG_H__4A836E38_954F_4098_B4F3_6E8AEC0415C4__INCLUDED_)