DLineDlg2.h
上传用户:qiye66671
上传日期:2009-12-10
资源大小:182k
文件大小:3k
源码类别:

绘图程序

开发平台:

C/C++

  1. #if !defined(AFX_DLINEDLG2_H__883752FA_BBB4_4601_8D6B_1AB0DDC40F44__INCLUDED_)
  2. #define AFX_DLINEDLG2_H__883752FA_BBB4_4601_8D6B_1AB0DDC40F44__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // DLineDlg2.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CDLineDlg2 dialog
  10. class CDLineDlg2 : public CPropertyPage
  11. {
  12. DECLARE_DYNCREATE(CDLineDlg2)
  13. // Construction
  14. public:
  15. void OnChange(COLORREF color);
  16. CDLineDlg2();
  17. ~CDLineDlg2();
  18. COLORREF m_Color;
  19. int m_Draw_Status;
  20. COLORREF m_PenColor;
  21. COLORREF m_BrushColor;
  22. COLORREF m_BackgroundColor;
  23. CBrush brush;
  24. // Dialog Data
  25. //{{AFX_DATA(CDLineDlg2)
  26. enum { IDD = IDD_PROPPAGE_DLine2 };
  27. CButton m_Check_Pen;
  28. CButton m_Check_Brush;
  29. CButton m_Check_Background;
  30. CStatic m_Static_ShowBrushColor;
  31. CStatic m_Static_ShowBackgroundColor;
  32. CStatic m_Static_ShowPenColor;
  33. CSpinButtonCtrl m_Spin_Red;
  34. CSpinButtonCtrl m_Spin_Green;
  35. CSpinButtonCtrl m_Spin_Blue;
  36. CEdit m_Edit_Red;
  37. CEdit m_Edit_Green;
  38. CEdit m_Edit_Blue;
  39. CSliderCtrl m_Slider_Red;
  40. CSliderCtrl m_Slider_Green;
  41. CSliderCtrl m_Slider_Blue;
  42. CStatic m_CStatic_ShowColor;
  43. int m_Blue;
  44. int m_Green;
  45. int m_Red;
  46. //}}AFX_DATA
  47. // Overrides
  48. // ClassWizard generate virtual function overrides
  49. //{{AFX_VIRTUAL(CDLineDlg2)
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. // Generated message map functions
  56. //{{AFX_MSG(CDLineDlg2)
  57. afx_msg void OnSTATICBlack();
  58. afx_msg void OnSTATICRed();
  59. afx_msg void OnSTATICDarkGray();
  60. afx_msg void OnSTATICLightRray();
  61. afx_msg void OnSTATICWhite();
  62. afx_msg void OnSTATICDrakBlue();
  63. afx_msg void OnSTATICBlue();
  64. afx_msg void OnSTATICGreen();
  65. afx_msg void OnSTATICDrakGreen();
  66. afx_msg void OnSTATICYellow();
  67. afx_msg void OnSTATICRarkRed();
  68. afx_msg void OnStaticBitmap6();
  69. afx_msg void OnStaticBitmap5();
  70. afx_msg void OnSTATICDarkYellow();
  71. afx_msg void OnStaticBitmap10();
  72. afx_msg void OnStaticBitmap9();
  73. afx_msg void OnPaint();
  74. virtual BOOL OnInitDialog();
  75. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  76. afx_msg void OnBUTTONSelect();
  77. afx_msg void OnBUTTONColorDlg();
  78. afx_msg void OnCHECKPen();
  79. afx_msg void OnCHECKBrush();
  80. afx_msg void OnCHECKBackground();
  81. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  82. //}}AFX_MSG
  83. DECLARE_MESSAGE_MAP()
  84. };
  85. //{{AFX_INSERT_LOCATION}}
  86. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  87. #endif // !defined(AFX_DLINEDLG2_H__883752FA_BBB4_4601_8D6B_1AB0DDC40F44__INCLUDED_)