home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / ICOMBO.ZIP / IconComboBox.h < prev   
Encoding:
C/C++ Source or Header  |  1998-08-27  |  1.4 KB  |  49 lines

  1. // IconComboBox.h : header file
  2. //
  3.  
  4. #ifndef _ICONCOMBOBOX_H_
  5. #define _ICONCOMBOBOX_H_
  6.  
  7. //////////////////////////////////////////////////////
  8. //                                                  //
  9. //                   CIconComboBox                  //
  10. //                                                  //
  11. // Copyright (c) Joel Wahlberg ENATOR Networks 1997 //
  12. //               joel.wahlberg@enator.se            //
  13. //                                                  //
  14. //////////////////////////////////////////////////////
  15.  
  16. class CIconComboBox : public CComboBox
  17. {
  18. // Contruction/Destruction
  19. public:
  20.     CIconComboBox();
  21.     virtual ~CIconComboBox();
  22.  
  23. // Attributes
  24. public:
  25.     CSize m_sizeIcon;
  26.  
  27. // Operations
  28. public:
  29.     virtual int AddIcon(LPCTSTR lpszIconFile);
  30.     virtual int InsertIcon(int nIndex, LPCTSTR lpszIconFile);
  31.     virtual int SelectIcon(LPCTSTR lpszIconFile);
  32.     virtual int SelectIcon(int nIndex);
  33.     virtual int DeleteIcon(LPCTSTR lpszIconFile);
  34.     virtual int DeleteIcon(int nIndex);
  35.  
  36. // Implementation
  37. protected:
  38.     virtual void OnOutputIcon(LPDRAWITEMSTRUCT lpDIS, BOOL bSelected);
  39.  
  40. // Overrides
  41.     virtual int AddString(LPCTSTR lpszString);
  42.     virtual int InsertString(int nIndex, LPCTSTR lpszString);
  43.     virtual int DeleteString(int nIndex);
  44.     virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMIS);
  45.     virtual void DrawItem(LPDRAWITEMSTRUCT lpDIS);
  46. };
  47.  
  48. #endif // _ICONCOMBOBOX_H_
  49.