home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / listhdr / mlistctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.7 KB  |  66 lines

  1. // MyListCtrl.h : header file
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CMyListCtrl window
  16. #ifndef INC_MYLISTCTRL_H
  17. #define INC_MYLISTCTRL_H
  18.  
  19.  
  20. class CMyListCtrl : public CListCtrl
  21. {
  22. // Construction
  23. public:
  24.     CMyListCtrl();
  25.  
  26. // Attributes
  27. public:
  28.  
  29.     BOOL            m_bDragging;
  30.     int             m_iItemDrag;
  31.     int             m_iItemDrop;
  32.     CPoint          m_ptHotSpot;
  33.     CPoint          m_ptOrigin;
  34.     CSize           m_sizeDelta;
  35.     CImageList      *m_pimageListDrag;
  36.  
  37. // Operations
  38. public:
  39.  
  40. // Overrides
  41.     // ClassWizard generated virtual function overrides
  42.     //{{AFX_VIRTUAL(CMyListCtrl)
  43.     public:
  44.     //}}AFX_VIRTUAL
  45.  
  46. // Implementation
  47. public:
  48.     virtual ~CMyListCtrl();
  49.     void    OnButtonUp(CPoint point);
  50.  
  51.     // Generated message map functions
  52. protected:
  53.     //{{AFX_MSG(CMyListCtrl)
  54.     afx_msg void OnBeginDrag(LPNMHDR pnmhdr, LRESULT *pResult);
  55.     afx_msg void OnEndLabelEdit(LPNMHDR pnmhdr, LRESULT *pResult);
  56.     afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  57.     afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  58.     afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  59.     //}}AFX_MSG
  60.  
  61.     DECLARE_MESSAGE_MAP()
  62. };
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65. #endif
  66.