duilib自学教程
Public 成员函数 | Protected 属性 | 友元 | 所有成员列表
DuiLib::CComboUI类 参考
类 DuiLib::CComboUI 继承关系图:
DuiLib::CContainerUI DuiLib::IListOwnerUI DuiLib::CControlUI DuiLib::IContainerUI

Public 成员函数

LPCTSTR GetClass () const
 
LPVOID GetInterface (LPCTSTR pstrName)
 
void DoInit ()
 
UINT GetControlFlags () const
 
CDuiString GetText () const
 
void SetEnabled (bool bEnable=true)
 
CDuiString GetDropBoxAttributeList ()
 
void SetDropBoxAttributeList (LPCTSTR pstrList)
 
SIZE GetDropBoxSize () const
 
void SetDropBoxSize (SIZE szDropBox)
 
int GetCurSel () const
 
bool GetSelectCloseFlag ()
 
void SetSelectCloseFlag (bool flag)
 
bool SelectItem (int iIndex, bool bTakeFocus=false, bool bTriggerEvent=true)
 
bool ExpandItem (int iIndex, bool bExpand=true)
 
int GetExpandedItem () const
 
bool SetItemIndex (CControlUI *pControl, int iNewIndex)
 
bool SetMultiItemIndex (CControlUI *pStartControl, int iCount, int iNewStartIndex)
 
bool Add (CControlUI *pControl)
 
bool AddAt (CControlUI *pControl, int iIndex)
 
bool Remove (CControlUI *pControl, bool bDoNotDestroy=false)
 
bool RemoveAt (int iIndex, bool bDoNotDestroy=false)
 
void RemoveAll ()
 
bool Activate ()
 
bool GetShowText () const
 
void SetShowText (bool flag)
 
RECT GetTextPadding () const
 
void SetTextPadding (RECT rc)
 
LPCTSTR GetNormalImage () const
 
void SetNormalImage (LPCTSTR pStrImage)
 
LPCTSTR GetHotImage () const
 
void SetHotImage (LPCTSTR pStrImage)
 
LPCTSTR GetPushedImage () const
 
void SetPushedImage (LPCTSTR pStrImage)
 
LPCTSTR GetFocusedImage () const
 
void SetFocusedImage (LPCTSTR pStrImage)
 
LPCTSTR GetDisabledImage () const
 
void SetDisabledImage (LPCTSTR pStrImage)
 
TListInfoUIGetListInfo ()
 
UINT GetItemFixedHeight ()
 
void SetItemFixedHeight (UINT nHeight)
 
int GetItemFont (int index)
 
void SetItemFont (int index)
 
UINT GetItemTextStyle ()
 
void SetItemTextStyle (UINT uStyle)
 
RECT GetItemTextPadding () const
 
void SetItemTextPadding (RECT rc)
 
DWORD GetItemTextColor () const
 
void SetItemTextColor (DWORD dwTextColor)
 
DWORD GetItemBkColor () const
 
void SetItemBkColor (DWORD dwBkColor)
 
LPCTSTR GetItemBkImage () const
 
void SetItemBkImage (LPCTSTR pStrImage)
 
bool IsAlternateBk () const
 
void SetAlternateBk (bool bAlternateBk)
 
DWORD GetSelectedItemTextColor () const
 
void SetSelectedItemTextColor (DWORD dwTextColor)
 
DWORD GetSelectedItemBkColor () const
 
void SetSelectedItemBkColor (DWORD dwBkColor)
 
LPCTSTR GetSelectedItemImage () const
 
void SetSelectedItemImage (LPCTSTR pStrImage)
 
DWORD GetHotItemTextColor () const
 
void SetHotItemTextColor (DWORD dwTextColor)
 
DWORD GetHotItemBkColor () const
 
void SetHotItemBkColor (DWORD dwBkColor)
 
LPCTSTR GetHotItemImage () const
 
void SetHotItemImage (LPCTSTR pStrImage)
 
DWORD GetDisabledItemTextColor () const
 
void SetDisabledItemTextColor (DWORD dwTextColor)
 
DWORD GetDisabledItemBkColor () const
 
void SetDisabledItemBkColor (DWORD dwBkColor)
 
LPCTSTR GetDisabledItemImage () const
 
void SetDisabledItemImage (LPCTSTR pStrImage)
 
int GetItemHLineSize () const
 
void SetItemHLineSize (int iSize)
 
DWORD GetItemHLineColor () const
 
void SetItemHLineColor (DWORD dwLineColor)
 
int GetItemVLineSize () const
 
void SetItemVLineSize (int iSize)
 
DWORD GetItemVLineColor () const
 
void SetItemVLineColor (DWORD dwLineColor)
 
bool IsItemShowHtml ()
 
void SetItemShowHtml (bool bShowHtml=true)
 
SIZE EstimateSize (SIZE szAvailable)
 
void SetPos (RECT rc, bool bNeedInvalidate=true)
 
void Move (SIZE szOffset, bool bNeedInvalidate=true)
 
void DoEvent (TEventUI &event)
 
void SetAttribute (LPCTSTR pstrName, LPCTSTR pstrValue)
 
bool DoPaint (HDC hDC, const RECT &rcPaint, CControlUI *pStopControl)
 
void PaintText (HDC hDC)
 
void PaintStatusImage (HDC hDC)
 
- Public 成员函数 继承自 DuiLib::CContainerUI
LPCTSTR GetClass () const
 
LPVOID GetInterface (LPCTSTR pstrName)
 
CControlUIGetItemAt (int iIndex) const
 
int GetItemIndex (CControlUI *pControl) const
 
bool SetItemIndex (CControlUI *pControl, int iNewIndex)
 
bool SetMultiItemIndex (CControlUI *pStartControl, int iCount, int iNewStartIndex)
 
int GetCount () const
 
bool Add (CControlUI *pControl)
 
bool AddAt (CControlUI *pControl, int iIndex)
 
bool Remove (CControlUI *pControl, bool bDoNotDestroy=false)
 
bool RemoveAt (int iIndex, bool bDoNotDestroy=false)
 
void RemoveAll ()
 
void DoEvent (TEventUI &event)
 
void SetVisible (bool bVisible=true)
 
void SetInternVisible (bool bVisible=true)
 
void SetMouseEnabled (bool bEnable=true)
 
virtual RECT GetInset () const
 
virtual void SetInset (RECT rcInset)
 
virtual int GetChildPadding () const
 
virtual void SetChildPadding (int iPadding)
 
virtual UINT GetChildAlign () const
 
virtual void SetChildAlign (UINT iAlign)
 
virtual UINT GetChildVAlign () const
 
virtual void SetChildVAlign (UINT iVAlign)
 
virtual bool IsAutoDestroy () const
 
virtual void SetAutoDestroy (bool bAuto)
 
virtual bool IsDelayedDestroy () const
 
virtual void SetDelayedDestroy (bool bDelayed)
 
virtual bool IsMouseChildEnabled () const
 
virtual void SetMouseChildEnabled (bool bEnable=true)
 
virtual int FindSelectable (int iIndex, bool bForward=true) const
 
RECT GetClientPos () const
 
void SetPos (RECT rc, bool bNeedInvalidate=true)
 
void Move (SIZE szOffset, bool bNeedInvalidate=true)
 
bool DoPaint (HDC hDC, const RECT &rcPaint, CControlUI *pStopControl)
 
void SetAttribute (LPCTSTR pstrName, LPCTSTR pstrValue)
 
void SetManager (CPaintManagerUI *pManager, CControlUI *pParent, bool bInit=true)
 
CControlUIFindControl (FINDCONTROLPROC Proc, LPVOID pData, UINT uFlags)
 
bool SetSubControlText (LPCTSTR pstrSubControlName, LPCTSTR pstrText)
 
bool SetSubControlFixedHeight (LPCTSTR pstrSubControlName, int cy)
 
bool SetSubControlFixedWdith (LPCTSTR pstrSubControlName, int cx)
 
bool SetSubControlUserData (LPCTSTR pstrSubControlName, LPCTSTR pstrText)
 
CDuiString GetSubControlText (LPCTSTR pstrSubControlName)
 
int GetSubControlFixedHeight (LPCTSTR pstrSubControlName)
 
int GetSubControlFixedWdith (LPCTSTR pstrSubControlName)
 
const CDuiString GetSubControlUserData (LPCTSTR pstrSubControlName)
 
CControlUIFindSubControl (LPCTSTR pstrSubControlName)
 
virtual SIZE GetScrollPos () const
 
virtual SIZE GetScrollRange () const
 
virtual void SetScrollPos (SIZE szPos)
 
virtual void LineUp ()
 
virtual void LineDown ()
 
virtual void PageUp ()
 
virtual void PageDown ()
 
virtual void HomeUp ()
 
virtual void EndDown ()
 
virtual void LineLeft ()
 
virtual void LineRight ()
 
virtual void PageLeft ()
 
virtual void PageRight ()
 
virtual void HomeLeft ()
 
virtual void EndRight ()
 
virtual void EnableScrollBar (bool bEnableVertical=true, bool bEnableHorizontal=false)
 
virtual CScrollBarUIGetVerticalScrollBar () const
 
virtual CScrollBarUIGetHorizontalScrollBar () const
 
- Public 成员函数 继承自 DuiLib::CControlUI
virtual void Delete ()
 
virtual CDuiString GetName () const
 
virtual void SetName (LPCTSTR pstrName)
 
virtual HWND GetNativeWindow () const
 
virtual CPaintManagerUIGetManager () const
 
virtual CControlUIGetParent () const
 
virtual CControlUIGetCover () const
 
virtual void SetCover (CControlUI *pControl)
 
virtual void SetText (LPCTSTR pstrText)
 
DWORD GetBkColor () const
 
void SetBkColor (DWORD dwBackColor)
 
DWORD GetBkColor2 () const
 
void SetBkColor2 (DWORD dwBackColor)
 
DWORD GetBkColor3 () const
 
void SetBkColor3 (DWORD dwBackColor)
 
LPCTSTR GetBkImage ()
 
void SetBkImage (LPCTSTR pStrImage)
 
DWORD GetFocusBorderColor () const
 
void SetFocusBorderColor (DWORD dwBorderColor)
 
bool IsColorHSL () const
 
void SetColorHSL (bool bColorHSL)
 
SIZE GetBorderRound () const
 
void SetBorderRound (SIZE cxyRound)
 
bool DrawImage (HDC hDC, TDrawInfo &drawInfo)
 
DWORD GetBorderColor () const
 
void SetBorderColor (DWORD dwBorderColor)
 
RECT GetBorderSize () const
 
void SetBorderSize (RECT rc)
 
void SetBorderSize (int iSize)
 
int GetBorderStyle () const
 
void SetBorderStyle (int nStyle)
 
virtual const RECT & GetPos () const
 
virtual RECT GetRelativePos () const
 
virtual int GetWidth () const
 
virtual int GetHeight () const
 
virtual int GetX () const
 
virtual int GetY () const
 
virtual RECT GetPadding () const
 
virtual void SetPadding (RECT rcPadding)
 
virtual SIZE GetFixedXY () const
 
virtual void SetFixedXY (SIZE szXY)
 
virtual TPercentInfo GetFloatPercent () const
 
virtual void SetFloatPercent (TPercentInfo piFloatPercent)
 
virtual int GetFixedWidth () const
 
virtual void SetFixedWidth (int cx)
 
virtual int GetFixedHeight () const
 
virtual void SetFixedHeight (int cy)
 
virtual int GetMinWidth () const
 
virtual void SetMinWidth (int cx)
 
virtual int GetMaxWidth () const
 
virtual void SetMaxWidth (int cx)
 
virtual int GetMinHeight () const
 
virtual void SetMinHeight (int cy)
 
virtual int GetMaxHeight () const
 
virtual void SetMaxHeight (int cy)
 
virtual CDuiString GetToolTip () const
 
virtual void SetToolTip (LPCTSTR pstrText)
 
virtual void SetToolTipWidth (int nWidth)
 
virtual int GetToolTipWidth (void)
 
virtual TCHAR GetShortcut () const
 
virtual void SetShortcut (TCHAR ch)
 
virtual bool IsContextMenuUsed () const
 
virtual void SetContextMenuUsed (bool bMenuUsed)
 
virtual const CDuiStringGetUserData ()
 
virtual void SetUserData (LPCTSTR pstrText)
 
virtual UINT_PTR GetTag () const
 
virtual void SetTag (UINT_PTR pTag)
 
virtual bool IsVisible () const
 
virtual bool IsEnabled () const
 
virtual bool IsMouseEnabled () const
 
virtual bool IsKeyboardEnabled () const
 
virtual void SetKeyboardEnabled (bool bEnable=true)
 
virtual bool IsFocused () const
 
virtual void SetFocus ()
 
virtual bool IsFloat () const
 
virtual void SetFloat (bool bFloat=true)
 
void AddCustomAttribute (LPCTSTR pstrName, LPCTSTR pstrAttr)
 
LPCTSTR GetCustomAttribute (LPCTSTR pstrName) const
 
bool RemoveCustomAttribute (LPCTSTR pstrName)
 
void RemoveAllCustomAttribute ()
 
void Invalidate ()
 
bool IsUpdateNeeded () const
 
void NeedUpdate ()
 
void NeedParentUpdate ()
 
DWORD GetAdjustColor (DWORD dwColor)
 
virtual void Init ()
 
virtual void Event (TEventUI &event)
 
virtual CDuiString GetAttribute (LPCTSTR pstrName)
 
virtual CDuiString GetAttributeList (bool bIgnoreDefault=true)
 
virtual void SetAttributeList (LPCTSTR pstrList)
 
virtual bool Paint (HDC hDC, const RECT &rcPaint, CControlUI *pStopControl=NULL)
 
virtual void PaintBkColor (HDC hDC)
 
virtual void PaintBkImage (HDC hDC)
 
virtual void PaintBorder (HDC hDC)
 
virtual void DoPostPaint (HDC hDC, const RECT &rcPaint)
 
void SetVirtualWnd (LPCTSTR pstrValue)
 
CDuiString GetVirtualWnd () const
 

Protected 属性

CComboWndm_pWindow
 
int m_iCurSel
 
bool m_bShowText
 
bool m_bSelectCloseFlag
 
RECT m_rcTextPadding
 
CDuiString m_sDropBoxAttributes
 
SIZE m_szDropBox
 
UINT m_uButtonState
 
TDrawInfo m_diNormal
 
TDrawInfo m_diHot
 
TDrawInfo m_diPushed
 
TDrawInfo m_diFocused
 
TDrawInfo m_diDisabled
 
TListInfoUI m_ListInfo
 
- Protected 属性 继承自 DuiLib::CContainerUI
CDuiPtrArray m_items
 
RECT m_rcInset
 
int m_iChildPadding
 
UINT m_iChildAlign
 
UINT m_iChildVAlign
 
bool m_bAutoDestroy
 
bool m_bDelayedDestroy
 
bool m_bMouseChildEnabled
 
bool m_bScrollProcess
 
CScrollBarUIm_pVerticalScrollBar
 
CScrollBarUIm_pHorizontalScrollBar
 
- Protected 属性 继承自 DuiLib::CControlUI
CPaintManagerUIm_pManager
 
CControlUIm_pParent
 
CControlUIm_pCover
 
CDuiString m_sVirtualWnd
 
CDuiString m_sName
 
bool m_bUpdateNeeded
 
bool m_bMenuUsed
 
bool m_bAsyncNotify
 
RECT m_rcItem
 
RECT m_rcPadding
 
SIZE m_cXY
 
SIZE m_cxyFixed
 
SIZE m_cxyMin
 
SIZE m_cxyMax
 
bool m_bVisible
 
bool m_bInternVisible
 
bool m_bEnabled
 
bool m_bMouseEnabled
 
bool m_bKeyboardEnabled
 
bool m_bFocused
 
bool m_bFloat
 
TPercentInfo m_piFloatPercent
 
bool m_bSetPos
 
CDuiString m_sText
 
CDuiString m_sToolTip
 
TCHAR m_chShortcut
 
CDuiString m_sUserData
 
UINT_PTR m_pTag
 
DWORD m_dwBackColor
 
DWORD m_dwBackColor2
 
DWORD m_dwBackColor3
 
TDrawInfo m_diBk
 
TDrawInfo m_diFore
 
DWORD m_dwBorderColor
 
DWORD m_dwFocusBorderColor
 
bool m_bColorHSL
 
int m_nBorderStyle
 
int m_nTooltipWidth
 
SIZE m_cxyBorderRound
 
RECT m_rcPaint
 
RECT m_rcBorderSize
 
CDuiStringPtrMap m_mCustomAttrHash
 

友元

class CComboWnd
 

额外继承的成员函数

- Public 属性 继承自 DuiLib::CControlUI
CEventSource OnInit
 
CEventSource OnDestroy
 
CEventSource OnSize
 
CEventSource OnEvent
 
CEventSource OnNotify
 
CEventSource OnPaint
 
CEventSource OnPostPaint
 
- Protected 成员函数 继承自 DuiLib::CContainerUI
virtual void SetFloatPos (int iIndex)
 
virtual void ProcessScrollBar (RECT rc, int cxRequired, int cyRequired)
 

该类的文档由以下文件生成: