| | |
| | | #pragma once |
| | | #include "afxdialogex.h" |
| | | |
| | | #include "BLLabel.h" |
| | | #include "CPLC.h" |
| | | |
| | | // CAxisSettingsDlg 对话框 |
| | | |
| | |
| | | CAxisSettingsDlg(CWnd* pParent = nullptr); // 标准构造函数 |
| | | virtual ~CAxisSettingsDlg(); |
| | | |
| | | public: |
| | | void SetPLC(CPLC* pPLC); |
| | | |
| | | // 对话框数据 |
| | | #ifdef AFX_DESIGN_TIME |
| | | enum { IDD = IDD_DIALOG_AXIS_SETTINGS }; |
| | |
| | | void SetDefaultFont(); |
| | | void AdjustControls(float dScaleX, float dScaleY); |
| | | void AdjustControlFont(CWnd* pWnd, int nWidth, int nHeight); |
| | | void AdjustLabelFont(CBLLabel& label); |
| | | void SetStatusColor(CBLLabel& label, BOOL bStatus); |
| | | |
| | | private: |
| | | CPLC* m_pPLC; |
| | | int m_nInitialWidth; |
| | | int m_nInitialHeight; |
| | | |
| | | // 控件 |
| | | CBLLabel m_staticFLS; |
| | | CBLLabel m_staticDOG; |
| | | CBLLabel m_staticRLS; |
| | | CBLLabel m_staticReady; |
| | | CBLLabel m_staticBusy; |
| | | CBLLabel m_staticErr; |
| | | std::map<int, CRect> m_mapCtrlLayouts; |
| | | std::map<int, CFont*> m_mapFonts; |
| | | |
| | |
| | | afx_msg void OnBnClickedButtonAxisTestJogAdd(); |
| | | afx_msg void OnBnClickedButtonAxisTestJogSub(); |
| | | afx_msg void OnBnClickedButtonAxisTestStop(); |
| | | afx_msg void OnTimer(UINT_PTR nIDEvent); |
| | | DECLARE_MESSAGE_MAP() |
| | | }; |