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) |
保护属性 |
| ImagingHelper * | m_BG |
| int | m_nWheelCount |
| int | m_nWheelWidth [MAX_UIWHEELCOUNT] |
| int | m_nXPos |
| ImagingHelper * | m_Select |
| ImagingHelper * | m_TextMask |
| UiWheel * | m_Wheel |
构造及析构函数文档
| UiWheelContainer::UiWheelContainer |
( |
void |
|
) |
|
| UiWheelContainer::~UiWheelContainer |
( |
void |
|
) |
|
成员函数文档
| void UiWheelContainer::AddWheelItem |
( |
int |
nIndex, |
|
|
const CMzString |
str | |
|
) |
| | |
| int UiWheelContainer::GetItemCount |
( |
int |
nIndex |
) |
|
| LPCTSTR UiWheelContainer::GetItemText |
( |
int |
nIndex, |
|
|
int |
nItem | |
|
) |
| | |
| int UiWheelContainer::GetSelectedItemIndex |
( |
int |
nIndex |
) |
|
| int UiWheelContainer::GetWheelCount |
( |
|
) |
|
| int UiWheelContainer::GetWheelMode |
( |
int |
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] |
| void UiWheelContainer::RemoveAllItem |
( |
int |
nIndex |
) |
|
| void UiWheelContainer::SetSelectedItemIndex |
( |
int |
nIndex, |
|
|
int |
nItem | |
|
) |
| | |
| void UiWheelContainer::SetTextColor |
( |
int |
nIndex, |
|
|
COLORREF |
cr | |
|
) |
| | |
| void UiWheelContainer::SetWheel |
( |
int |
nIndex, |
|
|
int |
nWidth, |
|
|
int |
nItemHeight | |
|
) |
| | |
设置滚轮属性
- 参数:
-
| nIndex | 滚轮索引 |
| nWidth | 滚轮宽度 |
| nItemHeight | 滚轮中每一项的高度 |
| void UiWheelContainer::SetWheelCount |
( |
int |
nCount |
) |
|
| void UiWheelContainer::SetWheelMode |
( |
int |
nIndex, |
|
|
int |
nMode | |
|
) |
| | |
设置滚轮模式
- 参数:
-
| nIndex | 滚轮索引 |
| nMode | 运动模式 UI_WHEEL_MODE_NORMAL,UI_WHEEL_MODE_SPRING |
成员数据文档
该类的文档由以下文件生成: