MultiLineListBox.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #if !defined(AFX_MULTILINELISTBOX_H__BF8E1EC2_833B_11D2_8BE7_A813DF000000__INCLUDED_)
  2. #define AFX_MULTILINELISTBOX_H__BF8E1EC2_833B_11D2_8BE7_A813DF000000__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // MultiLineListBox.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMultiLineListBox
  10. class CMultiLineListBox : public CListBox
  11. {
  12. // Attributes
  13. public:
  14. // Operations
  15. public:
  16. void AddEntry(LPCTSTR lpszItem, COLORREF color, int nIndex=0);
  17. virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMIS);
  18. virtual void DrawItem(LPDRAWITEMSTRUCT lpDIS);
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CMultiLineListBox)
  22. //}}AFX_VIRTUAL
  23. // Implementation
  24. public:
  25. // Generated message map functions
  26. protected:
  27. //{{AFX_MSG(CMultiLineListBox)
  28. // NOTE - the ClassWizard will add and remove member functions here.
  29. //}}AFX_MSG
  30. DECLARE_MESSAGE_MAP()
  31. };
  32. /////////////////////////////////////////////////////////////////////////////
  33. //{{AFX_INSERT_LOCATION}}
  34. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  35. #endif // !defined(AFX_MULTILINELISTBOX_H__BF8E1EC2_833B_11D2_8BE7_A813DF000000__INCLUDED_)