UiWheelContainer类参考

#include <UiWheelContainer.h>

继承自UiWin

所有成员的列表。

公有成员

void AddWheelItem (int nIndex, const CMzString str)
 添加滚轮项
int GetItemCount (int nIndex)
LPCTSTR GetItemText (int nIndex, int nItem)
 获取滚轮某项的内容
int GetSelectedItemIndex (int nIndex)
 获取选中项的索引
int GetWheelCount ()
 获取滚轮数目
int GetWheelMode (int nIndex)
 获取滚轮模式
virtual int OnLButtonDown (UINT fwKeys, int xPos, int yPos)
 当控件被左键按下时,此函数会被调用.
virtual int OnLButtonUp (UINT fwKeys, int xPos, int yPos)
 当控件被左键放开时,此函数会被调用.
virtual int OnMouseMove (UINT fwKeys, int xPos, int yPos)
 当控件上鼠标移动时,此函数会被调用.
void OnPaint (HDC hdcDst, RECT *prcWin, RECT *prcUpdate)
void RemoveAllItem (int nIndex)
void SetSelectedItemIndex (int nIndex, int nItem)
 设置被选中项的索引
void SetTextColor (int nIndex, COLORREF cr)
 设置滚轮字体颜色
void SetWheel (int nIndex, int nWidth, int nItemHeight)
 设置滚轮属性
void SetWheelCount (int nCount)
 设置滚轮数目
void SetWheelMode (int nIndex, int nMode)
 设置滚轮模式
 UiWheelContainer (void)
 ~UiWheelContainer (void)

保护属性

ImagingHelperm_BG
int m_nWheelCount
int m_nWheelWidth [MAX_UIWHEELCOUNT]
int m_nXPos
ImagingHelperm_Select
ImagingHelperm_TextMask
UiWheelm_Wheel

构造及析构函数文档

UiWheelContainer::UiWheelContainer ( void   ) 
UiWheelContainer::~UiWheelContainer ( void   ) 

成员函数文档

void UiWheelContainer::AddWheelItem ( int  nIndex,
const CMzString  str 
)

添加滚轮项

参数:
nIndex 滚轮索引
str 项的内容
int UiWheelContainer::GetItemCount ( int  nIndex  ) 
LPCTSTR UiWheelContainer::GetItemText ( int  nIndex,
int  nItem 
)

获取滚轮某项的内容

参数:
nIndex 滚轮索引
nItem 选中项的索引
int UiWheelContainer::GetSelectedItemIndex ( int  nIndex  ) 

获取选中项的索引

参数:
nIndex 滚轮索引
int UiWheelContainer::GetWheelCount (  ) 

获取滚轮数目

int UiWheelContainer::GetWheelMode ( int  nIndex  ) 

获取滚轮模式

参数:
nIndex 滚轮索引
virtual int UiWheelContainer::OnLButtonDown ( UINT  fwKeys,
int  xPos,
int  yPos 
) [virtual]

当控件被左键按下时,此函数会被调用.

重载UiWin

virtual int UiWheelContainer::OnLButtonUp ( UINT  fwKeys,
int  xPos,
int  yPos 
) [virtual]

当控件被左键放开时,此函数会被调用.

重载UiWin

virtual int UiWheelContainer::OnMouseMove ( UINT  fwKeys,
int  xPos,
int  yPos 
) [virtual]

当控件上鼠标移动时,此函数会被调用.

重载UiWin

void UiWheelContainer::OnPaint ( HDC  hdcDst,
RECT *  prcWin,
RECT *  prcUpdate 
) [virtual]

重载UiWin

void UiWheelContainer::RemoveAllItem ( int  nIndex  ) 
void UiWheelContainer::SetSelectedItemIndex ( int  nIndex,
int  nItem 
)

设置被选中项的索引

参数:
nIndex 滚轮索引
nItem 选中项的索引
void UiWheelContainer::SetTextColor ( int  nIndex,
COLORREF  cr 
)

设置滚轮字体颜色

参数:
nIndex 滚轮索引
cr 颜色值
void UiWheelContainer::SetWheel ( int  nIndex,
int  nWidth,
int  nItemHeight 
)

设置滚轮属性

参数:
nIndex 滚轮索引
nWidth 滚轮宽度
nItemHeight 滚轮中每一项的高度
void UiWheelContainer::SetWheelCount ( int  nCount  ) 

设置滚轮数目

参数:
nCount 滚轮数目
void UiWheelContainer::SetWheelMode ( int  nIndex,
int  nMode 
)

设置滚轮模式

参数:
nIndex 滚轮索引
nMode 运动模式 UI_WHEEL_MODE_NORMAL,UI_WHEEL_MODE_SPRING

成员数据文档

int UiWheelContainer::m_nWheelWidth[MAX_UIWHEELCOUNT] [protected]
int UiWheelContainer::m_nXPos [protected]

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

Generated at Tue Feb 9 15:10:03 2010 for Meizu M8 SDK Documentation by  doxygen 1.6.1