HStrokeEditDlg.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #if !defined(AFX_HStrokeEditDlg_H__FAFB5955_AE6B_482E_BBE2_8DCE58BB257A__INCLUDED_)
  2. #define AFX_HStrokeEditDlg_H__FAFB5955_AE6B_482E_BBE2_8DCE58BB257A__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // HStrokeEditDlg.h : header file
  7. //
  8. #include "HStroke.h"
  9. #include "math.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // HStrokeEditDlg dialog
  12. class HStrokeEditDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. void setStrokeList(CTypedPtrArray<CObArray, HStroke *> *p);
  17. HStrokeEditDlg(CWnd* pParent = NULL); // standard constructor
  18. // Dialog Data
  19. //{{AFX_DATA(HStrokeEditDlg)
  20. enum { IDD = IDD_DLG_SET };
  21. CButton m_btnColor;
  22. CEdit m_editWidth;
  23. CListBox m_listStroke;
  24. CEdit m_editStroke;
  25. //}}AFX_DATA
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(HStrokeEditDlg)
  29. protected:
  30. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  31. //}}AFX_VIRTUAL
  32. private:
  33. CString strokeInfo(HStroke *stroke, int index);
  34. // Implementation
  35. protected:
  36. CTypedPtrArray<CObArray, HStroke *> * m_ptrStrokeList;
  37. // Generated message map functions
  38. //{{AFX_MSG(HStrokeEditDlg)
  39. virtual BOOL OnInitDialog();
  40. afx_msg void OnSelchangeListStrokes();
  41. afx_msg void OnBtnUpdate();
  42. afx_msg void OnBtnDel();
  43. afx_msg void OnBtnColor();
  44. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  45. afx_msg void OnOk();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. };
  49. //{{AFX_INSERT_LOCATION}}
  50. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  51. #endif // !defined(AFX_HStrokeEditDlg_H__FAFB5955_AE6B_482E_BBE2_8DCE58BB257A__INCLUDED_)