You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.3 KiB
C++

#pragma once
#include "MarkAreaMgr.h"
class CDlgMarkArea : public CDialogEx
{
DECLARE_DYNAMIC(CDlgMarkArea)
public:
CDlgMarkArea(CMarkAreaMgr &Mgr,CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgMarkArea();
// 对话框数据
enum { IDD = IDD_MARK_AREA };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
virtual BOOL OnInitDialog();
afx_msg void OnNMClickValStrList(NMHDR *pNMHDR, LRESULT *pResult);
DECLARE_MESSAGE_MAP()
private:
void IniList();
void UpdateAreaList();
int GetCurListIdx(CListCtrl &list);
void AreaListEvent();
private:
CMarkAreaMgr &m_Mgr;
CMarkAreaMgr m_OldMgr;//修改之前的对象,用于恢复
CMarkArea m_CurObj;//当前选择的
CListCtrl m_List;
int m_CurSelListIdx;//当前选择的行号
CBitmapButton m_XLeftBtn; //平台左移按钮
CBitmapButton m_XRightBtn; //平台右移按钮
CBitmapButton m_XTopBtn; //平台上移按钮
CBitmapButton m_XDownBtn; //平台下移按钮
double m_MoveDis;//移动的距离(mm)
bool m_bShowArea;//是否显示area
CButton m_ShowArea;
CButton m_AllAreaMove;
//自动阵列area
int m_CntX;
int m_CntY;
public:
afx_msg void OnBnClickedNew();
afx_msg void OnBnClickedDelete();
afx_msg void OnBnClickedCommit();
afx_msg void OnBnClickedUpBtn();
afx_msg void OnBnClickedDownBtn();
afx_msg void OnBnClickedLeftBtn();
afx_msg void OnBnClickedRightBtn();
afx_msg void OnBnClickedMoveUp();
afx_msg void OnBnClickedMoveDown();
afx_msg void OnBnClickedZoomOut();
afx_msg void OnBnClickedZoomIn();
afx_msg void OnBnClickedShowArea();
afx_msg void OnBnClickedDelAll();
afx_msg void OnBnClickedCancel();
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedReadFile();
afx_msg void OnBnClickedSaveFile();
afx_msg void OnBnClickedByObj();
afx_msg void OnBnClickedArrayCreat();
afx_msg void OnBnClickedSetSize();
afx_msg void OnBnClickedCreatCross();
};