UiAlphabetBar类参考
字母导航栏控件
更多...
#include <UiAlphabetBar.h>
继承自UiWin。
所有成员的列表。
公有成员 |
int | CalcIndexOfPosition (int xPos, int yPos) |
void | EnableZoomAlphabet (bool bEnableZoomAlphabet) |
| 启用后,当你点击控件上的某个字母,则它会被放大显示在旁边的泡泡上.
|
int | GetCount () |
| 获得字母数目
|
MZFC_INLINE int | GetCurIndex () |
| 获得当前点击的字母的索引. (m_nCurIndex: -1: 无, >=0: 索引值)
|
LPCTSTR | GetCurLetter () |
| 获得当前点击的字母
|
BOOL | GetExtendedProperty_UiAlphabetBar (int nPropertyType, void *pValue, int nBufSize) |
| 获取或设置对象的扩展属性值
|
COLORREF | GetTextColor_Pressed () |
MZFC_INLINE int | GetZoomAlphabetOffset_X () |
MZFC_INLINE int | GetZoomAlphabetOffset_Y () |
virtual void | Invalidate (RECT *prcUpdate=NULL) |
| 无效控件所在区域
|
MZFC_INLINE bool | IsEnableZoomAlphabet () |
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) |
| 当控件上鼠标移动时,此函数会被调用.
|
virtual void | PaintWin (HDC hdc, RECT *prcWin, RECT *prcUpdate) |
| 绘制控件
|
BOOL | SetExtendedProperty_UiAlphabetBar (int nPropertyType, void *pValue, int nBufSize) |
| 获取或设置对象的扩展属性值
|
void | SetTextColor_Pressed (COLORREF clr) |
| 按下状态的字体颜色
|
void | SetZoomAlphabetOffset_X (int nXOffset) |
| 设置放大的泡泡的位置偏移.
|
void | SetZoomAlphabetOffset_Y (int nYOffset) |
| UiAlphabetBar (void) |
| ~UiAlphabetBar (void) |
保护属性 |
bool | m_bEnableZoomAlphabet |
COLORREF | m_crText_Pressed |
int | m_nCurIndex |
int | m_nZoomAlphabetOffset_X |
int | m_nZoomAlphabetOffset_Y |
详细描述
字母导航栏控件
构造及析构函数文档
UiAlphabetBar::UiAlphabetBar |
( |
void |
|
) |
|
UiAlphabetBar::~UiAlphabetBar |
( |
void |
|
) |
|
成员函数文档
int UiAlphabetBar::CalcIndexOfPosition |
( |
int |
xPos, |
|
|
int |
yPos | |
|
) |
| | |
void UiAlphabetBar::EnableZoomAlphabet |
( |
bool |
bEnableZoomAlphabet |
) |
|
启用后,当你点击控件上的某个字母,则它会被放大显示在旁边的泡泡上.
int UiAlphabetBar::GetCount |
( |
|
) |
|
MZFC_INLINE int UiAlphabetBar::GetCurIndex |
( |
|
) |
|
获得当前点击的字母的索引. (m_nCurIndex: -1: 无, >=0: 索引值)
LPCTSTR UiAlphabetBar::GetCurLetter |
( |
|
) |
|
BOOL UiAlphabetBar::GetExtendedProperty_UiAlphabetBar |
( |
int |
nPropertyType, |
|
|
void * |
pValue, |
|
|
int |
nBufSize | |
|
) |
| | |
获取或设置对象的扩展属性值
- 参数:
-
| nPropertyType | 要获取或设置的属性类型 |
| pValue | 要获取或设置的属性值的指针 |
| nBufSize | pValue所指向的变量的size大小(单位: 字节) |
- 返回:
- 操作是否成功
COLORREF UiAlphabetBar::GetTextColor_Pressed |
( |
|
) |
|
MZFC_INLINE int UiAlphabetBar::GetZoomAlphabetOffset_X |
( |
|
) |
|
MZFC_INLINE int UiAlphabetBar::GetZoomAlphabetOffset_Y |
( |
|
) |
|
virtual void UiAlphabetBar::Invalidate |
( |
RECT * |
prcUpdate = NULL |
) |
[virtual] |
无效控件所在区域
- 参数:
-
| prcUpdate | [in] 指定需要无效的区域. NULL则无效整个控件区域. |
重载UiWin。
MZFC_INLINE bool UiAlphabetBar::IsEnableZoomAlphabet |
( |
|
) |
|
virtual int UiAlphabetBar::OnLButtonDown |
( |
UINT |
fwKeys, |
|
|
int |
xPos, |
|
|
int |
yPos | |
|
) |
| | [virtual] |
当控件被左键按下时,此函数会被调用.
重载UiWin。
virtual int UiAlphabetBar::OnLButtonUp |
( |
UINT |
fwKeys, |
|
|
int |
xPos, |
|
|
int |
yPos | |
|
) |
| | [virtual] |
当控件被左键放开时,此函数会被调用.
重载UiWin。
virtual int UiAlphabetBar::OnMouseMove |
( |
UINT |
fwKeys, |
|
|
int |
xPos, |
|
|
int |
yPos | |
|
) |
| | [virtual] |
当控件上鼠标移动时,此函数会被调用.
重载UiWin。
virtual void UiAlphabetBar::PaintWin |
( |
HDC |
hdcDst, |
|
|
RECT * |
prcWin, |
|
|
RECT * |
prcUpdate | |
|
) |
| | [virtual] |
绘制控件
重载此函数可以自定义控件的绘制
- 参数:
-
| hdcDst | 目的DC |
| prcWin | 控件所在区域(以HDC的左上角为原点) |
| prcUpdate | 需要更新的区域(以HDC的左上角为原点) |
重载UiWin。
BOOL UiAlphabetBar::SetExtendedProperty_UiAlphabetBar |
( |
int |
nPropertyType, |
|
|
void * |
pValue, |
|
|
int |
nBufSize | |
|
) |
| | |
获取或设置对象的扩展属性值
- 参数:
-
| nPropertyType | 要获取或设置的属性类型 |
| pValue | 要设置的属性值的指针 |
| nBufSize | pValue所指向的变量的size大小(单位: 字节) |
- 返回:
- 操作是否成功
void UiAlphabetBar::SetTextColor_Pressed |
( |
COLORREF |
clr |
) |
|
void UiAlphabetBar::SetZoomAlphabetOffset_X |
( |
int |
nXOffset |
) |
|
void UiAlphabetBar::SetZoomAlphabetOffset_Y |
( |
int |
nYOffset |
) |
|
成员数据文档
该类的文档由以下文件生成: