SampleView.h
上传用户:szcanmei
上传日期:2007-01-02
资源大小:48k
文件大小:1k
源码类别:

菜单

开发平台:

Visual C++

  1. // A flat popup menu for controls
  2. // Copyright (c) 1999 Andy Brown <andy@mirage.dabsol.co.uk>
  3. // You may do whatever you like with this file, I just don't care.
  4. #if !defined(AFX_SAMPLEVIEW_H__570E5259_6392_11D3_A25F_0000B45C6D5E__INCLUDED_)
  5. #define AFX_SAMPLEVIEW_H__570E5259_6392_11D3_A25F_0000B45C6D5E__INCLUDED_
  6. #pragma once
  7. // view class
  8. class CSampleView : public CView
  9. {
  10. public:
  11. CFont *m_pFont;
  12. int  m_Height;
  13. COLORREF m_crText;
  14. COLORREF m_crBack;
  15. CBrush *m_pBrush;
  16. CRect  m_rcFile;
  17. CRect  m_rcEdit;
  18. CRect  m_rcControl;
  19. bool  m_bCheck1;
  20. bool  m_bCheck2;
  21. protected:
  22. CSampleView();
  23. DECLARE_DYNCREATE(CSampleView)
  24. //{{AFX_MSG(CSampleView)
  25. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  26. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  27. //}}AFX_MSG
  28. DECLARE_MESSAGE_MAP()
  29. void ControlMenu(CPoint point);
  30. void FileMenu(void);
  31. void EditMenu(void);
  32. void EditColor(COLORREF& cr);
  33. public:
  34. //{{AFX_VIRTUAL(CSampleView)
  35. public:
  36. virtual void OnDraw(CDC* pDC);
  37. //}}AFX_VIRTUAL
  38. virtual ~CSampleView();
  39. #ifdef _DEBUG
  40. virtual void AssertValid() const;
  41. virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43. };
  44. //{{AFX_INSERT_LOCATION}}
  45. #endif // !defined(AFX_SAMPLEVIEW_H__570E5259_6392_11D3_A25F_0000B45C6D5E__INCLUDED_)