| | |
| | | |
| | | #pragma once |
| | | #include "ServoGraph.h" |
| | | #include "BlButton.h" |
| | | #include "LogDlg.h" |
| | | |
| | | |
| | | // CServoDlg 对话框 |
| | |
| | | // 构造 |
| | | public: |
| | | CServoDlg(CWnd* pParent = NULL); // 标准构造函数 |
| | | |
| | | |
| | | private: |
| | | void Resize(); |
| | | void UpdateLogBtn(); |
| | | |
| | | |
| | | // 对话框数据 |
| | | #ifdef AFX_DESIGN_TIME |
| | |
| | | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 |
| | | |
| | | |
| | | private: |
| | | BOOL m_bShowLogWnd; |
| | | CLogDlg* m_pLogDlg; |
| | | |
| | | // 实现 |
| | | protected: |
| | | HICON m_hIcon; |
| | | CServoGraph* m_pGraph; |
| | | COLORREF m_crBkgnd; |
| | | HBRUSH m_hbrBkgnd; |
| | | CBlButton m_btnLog; |
| | | |
| | | |
| | | // 生成的消息映射函数 |
| | | virtual BOOL OnInitDialog(); |
| | |
| | | afx_msg void OnBnClickedCancel(); |
| | | afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); |
| | | afx_msg void OnDestroy(); |
| | | afx_msg void OnBnClickedButtonLog(); |
| | | afx_msg void OnSize(UINT nType, int cx, int cy); |
| | | afx_msg void OnClose(); |
| | | afx_msg LRESULT OnLogDlgHide(WPARAM wParam, LPARAM lParam); |
| | | afx_msg void OnMoving(UINT fwSide, LPRECT pRect); |
| | | afx_msg void OnMove(int x, int y); |
| | | }; |