home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / msmqocm.cab / DRAWAREA.H < prev    next >
C/C++ Source or Header  |  1997-10-06  |  1KB  |  61 lines

  1. // drawarea.h : header file
  2. //
  3.  
  4. #define MAX_MSG_BODY_LEN 32
  5.  
  6. typedef struct tagLINE
  7. {
  8.     CPoint ptStart;
  9.     CPoint ptEnd;
  10. } LINE;
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CDrawArea window
  14.  
  15. class CDrawArea : public CEdit
  16. {
  17. // Construction
  18. public:
  19.     CDrawArea();
  20.  
  21. // Attributes
  22. public:
  23.  
  24. protected:
  25.     CPoint m_ptLast;
  26.     CList<LINE, LINE &> m_listLines;
  27.  
  28. // Operations
  29. public:
  30.     void AddLine(LINE line);
  31.     void AddKeystroke(char *mbsKey);
  32.  
  33. // Overrides
  34.     // ClassWizard generated virtual function overrides
  35.     //{{AFX_VIRTUAL(CDrawArea)
  36.     //}}AFX_VIRTUAL
  37.  
  38. // Implementation
  39. public:
  40.     virtual ~CDrawArea();
  41.  
  42.     // Generated message map functions
  43. protected:
  44.     //{{AFX_MSG(CDrawArea)
  45.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  46.     afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  47.     afx_msg void OnPaint();
  48.     afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  49.     afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
  50.     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  51.     afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  52.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  53.     afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  54.     afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  55.     //}}AFX_MSG
  56.  
  57.     DECLARE_MESSAGE_MAP()
  58. };
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61.