FillSetDlg.h
上传用户:lj3531212
上传日期:2007-06-18
资源大小:346k
文件大小:2k
源码类别:

绘图程序

开发平台:

Visual C++

  1. #if !defined(AFX_FILLSETDLG_H__A53DB361_0C54_4FCE_BF2B_1E6BEBE98EA0__INCLUDED_)
  2. #define AFX_FILLSETDLG_H__A53DB361_0C54_4FCE_BF2B_1E6BEBE98EA0__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // FillSetDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CFillSetDlg dialog
  10. class CFillSetDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CFillSetDlg(CWnd* pParent = NULL);   // standard constructor
  15. public:
  16. //Attributes
  17. CRect m_NoFillRect;//0
  18. CRect                       m_SolidRect;//1
  19. int                         m_nOld;
  20. int m_nCurrent ;
  21. int m_nSelect ;
  22. int                         m_nMargin;
  23. CWnd*                       m_pWndParent;
  24. public:
  25. //operations
  26. BOOL GetCellRect(int i,CRect* pRect);
  27. void draw_cell(CDC* pDC,int i);  
  28. void                        Init();     
  29. void                        SetStyle(int nStyle);                
  30. // Dialog Data
  31. //{{AFX_DATA(CFillSetDlg)
  32. enum { IDD = IDD_FILL_SET };
  33. // NOTE: the ClassWizard will add data members here
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CFillSetDlg)
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. // Generated message map functions
  44. //{{AFX_MSG(CFillSetDlg)
  45. virtual BOOL OnInitDialog();
  46. afx_msg void OnKillFocus(CWnd* pNewWnd);
  47. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  48. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  49. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  50. afx_msg void OnPaint();
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. };
  54. //{{AFX_INSERT_LOCATION}}
  55. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  56. #endif // !defined(AFX_FILLSETDLG_H__A53DB361_0C54_4FCE_BF2B_1E6BEBE98EA0__INCLUDED_)