xh_odcombo.h 934 B

12345678910111213141516171819202122232425262728293031323334
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/xrc/xh_odcombo.h
  3. // Purpose: XML resource handler for wxOwnerDrawnComboBox
  4. // Author: Alex Bligh - based on wx/xrc/xh_combo.h
  5. // Created: 2006/06/19
  6. // Copyright: (c) 2006 Alex Bligh
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_XH_ODCOMBO_H_
  10. #define _WX_XH_ODCOMBO_H_
  11. #include "wx/xrc/xmlres.h"
  12. #if wxUSE_XRC && wxUSE_ODCOMBOBOX
  13. class WXDLLIMPEXP_XRC wxOwnerDrawnComboBoxXmlHandler : public wxXmlResourceHandler
  14. {
  15. DECLARE_DYNAMIC_CLASS(wxOwnerDrawnComboBoxXmlHandler)
  16. public:
  17. wxOwnerDrawnComboBoxXmlHandler();
  18. virtual wxObject *DoCreateResource();
  19. virtual bool CanHandle(wxXmlNode *node);
  20. private:
  21. bool m_insideBox;
  22. wxArrayString strList;
  23. };
  24. #endif // wxUSE_XRC && wxUSE_ODCOMBOBOX
  25. #endif // _WX_XH_ODCOMBO_H_