UIComboBox.h 671 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __UICOMBOBOX_H__
  2. #define __UICOMBOBOX_H__
  3. #pragma once
  4. namespace DuiLib
  5. {
  6. /// 扩展下拉列表框
  7. /// 增加arrowimage属性,一张图片平均分成5份,Normal/Hot/Pushed/Focused/Disabled(必须有source属性)
  8. /// <Default name="ComboBox" value="arrowimage=&quot;file='sys_combo_btn.png' source='0,0,16,16'&quot; "/>
  9. class UILIB_API CComboBoxUI : public CComboUI
  10. {
  11. DECLARE_DUICONTROL(CComboBoxUI)
  12. public:
  13. CComboBoxUI();
  14. LPCTSTR GetClass() const;
  15. void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  16. void PaintText(HDC hDC);
  17. void PaintStatusImage(HDC hDC);
  18. protected:
  19. CDuiString m_sArrowImage;
  20. int m_nArrowWidth;
  21. };
  22. }
  23. #endif // __UICOMBOBOX_H__