UiToolbar_Icon类参考
图标按钮工具条
更多...
#include <UiToolbar_Icon.h>
继承自UiWin。
所有成员的列表。
公有成员 |
| int | CalcIndexOfPos (int x, int y) |
| void | EnableButton (int nIndex, bool bEnable) |
| int | GetButtonCount () |
| int | GetButtonHighLightGrade (int nIndex) |
| BOOL | GetExtendedProperty_UiToolbar_Icon (int nPropertyType, void *pValue, int nBufSize) |
| | 获取或设置对象的扩展属性值
|
| int | GetHighLightButton () |
| MZFC_INLINE int | GetIconBarType () |
| bool | IsButtonEnabled (int nIndex) |
| | 工具条中的某个按钮的启用、禁用状态
|
| bool | IsButtonShow (int nIndex) |
| | 某个按钮是否显示、隐藏
|
| void | LoadButtonIcon (int nIndex, HINSTANCE hInst, LPCWSTR lpResType, LPCWSTR lpResName) |
| | 加载指定按钮的图标
|
| void | LoadButtonIcon_Disabled (int nIndex, HINSTANCE hInst, LPCWSTR lpResType, LPCWSTR lpResName) |
| | 加载指定按钮的图标(禁用状态的)
|
| int | OnLButtonDown (UINT fwKeys, int xPos, int yPos) |
| | 当控件被左键按下时,此函数会被调用.
|
| int | OnLButtonUp (UINT fwKeys, int xPos, int yPos) |
| | 当控件被左键放开时,此函数会被调用.
|
| void | PaintWin (HDC hdcDst, RECT *prcWin, RECT *prcUpdate) |
| | 绘制控件
|
| void | SetButtonCount (int nCount) |
| void | SetButtonHighLightGrade (int nIndex, int nGrade) |
| BOOL | SetExtendedProperty_UiToolbar_Icon (int nPropertyType, void *pValue, int nBufSize) |
| | 获取或设置对象的扩展属性值
|
| void | SetHighLightButton (int nIndex) |
| MZFC_INLINE void | SetIconBarType (int nType) |
| void | ShowButton (int nIndex, bool bShow) |
| | 显示、隐藏某个按钮
|
| | UiToolbar_Icon (void) |
| | ~UiToolbar_Icon (void) |
保护属性 |
| bool | m_bButtonEnables [MAX_ICONTOOLBAR_BUTTON] |
| bool | m_bButtonShows [MAX_ICONTOOLBAR_BUTTON] |
| ImagingHelper | m_Images [MAX_ICONTOOLBAR_BUTTON] |
| ImagingHelper | m_ImagesDisabled [MAX_ICONTOOLBAR_BUTTON] |
| int | m_nBarType |
| int | m_nButtonCount |
| int | m_nButtonHighLightGrades [MAX_ICONTOOLBAR_BUTTON] |
| int | m_nHighLightIndex |
| int | m_nLButtonDown_Index |
详细描述
图标按钮工具条
当工具条中的按钮被点击,控件会向所在窗口发送 MZ_WM_COMMAND 消息
构造及析构函数文档
| UiToolbar_Icon::UiToolbar_Icon |
( |
void |
|
) |
|
| UiToolbar_Icon::~UiToolbar_Icon |
( |
void |
|
) |
|
成员函数文档
| int UiToolbar_Icon::CalcIndexOfPos |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
| void UiToolbar_Icon::EnableButton |
( |
int |
nIndex, |
|
|
bool |
bEnable | |
|
) |
| | |
启用、禁用工具条中的某个按钮 nIndex >=0 按钮的索引
| int UiToolbar_Icon::GetButtonCount |
( |
|
) |
|
| int UiToolbar_Icon::GetButtonHighLightGrade |
( |
int |
nIndex |
) |
|
| BOOL UiToolbar_Icon::GetExtendedProperty_UiToolbar_Icon |
( |
int |
nPropertyType, |
|
|
void * |
pValue, |
|
|
int |
nBufSize | |
|
) |
| | |
获取或设置对象的扩展属性值
- 参数:
-
| nPropertyType | 要获取或设置的属性类型 |
| pValue | 要获取或设置的属性值的指针 |
| nBufSize | pValue所指向的变量的size大小(单位: 字节) |
- 返回:
- 操作是否成功
| int UiToolbar_Icon::GetHighLightButton |
( |
|
) |
|
| MZFC_INLINE int UiToolbar_Icon::GetIconBarType |
( |
|
) |
|
| bool UiToolbar_Icon::IsButtonEnabled |
( |
int |
nIndex |
) |
|
| bool UiToolbar_Icon::IsButtonShow |
( |
int |
nIndex |
) |
|
| void UiToolbar_Icon::LoadButtonIcon |
( |
int |
nIndex, |
|
|
HINSTANCE |
hInst, |
|
|
LPCWSTR |
lpResType, |
|
|
LPCWSTR |
lpResName | |
|
) |
| | |
| void UiToolbar_Icon::LoadButtonIcon_Disabled |
( |
int |
nIndex, |
|
|
HINSTANCE |
hInst, |
|
|
LPCWSTR |
lpResType, |
|
|
LPCWSTR |
lpResName | |
|
) |
| | |
| int UiToolbar_Icon::OnLButtonDown |
( |
UINT |
fwKeys, |
|
|
int |
xPos, |
|
|
int |
yPos | |
|
) |
| | [virtual] |
当控件被左键按下时,此函数会被调用.
重载UiWin。
| int UiToolbar_Icon::OnLButtonUp |
( |
UINT |
fwKeys, |
|
|
int |
xPos, |
|
|
int |
yPos | |
|
) |
| | [virtual] |
当控件被左键放开时,此函数会被调用.
重载UiWin。
| void UiToolbar_Icon::PaintWin |
( |
HDC |
hdcDst, |
|
|
RECT * |
prcWin, |
|
|
RECT * |
prcUpdate | |
|
) |
| | [virtual] |
绘制控件
重载此函数可以自定义控件的绘制
- 参数:
-
| hdcDst | 目的DC |
| prcWin | 控件所在区域(以HDC的左上角为原点) |
| prcUpdate | 需要更新的区域(以HDC的左上角为原点) |
重载UiWin。
| void UiToolbar_Icon::SetButtonCount |
( |
int |
nCount |
) |
|
| void UiToolbar_Icon::SetButtonHighLightGrade |
( |
int |
nIndex, |
|
|
int |
nGrade | |
|
) |
| | |
| BOOL UiToolbar_Icon::SetExtendedProperty_UiToolbar_Icon |
( |
int |
nPropertyType, |
|
|
void * |
pValue, |
|
|
int |
nBufSize | |
|
) |
| | |
获取或设置对象的扩展属性值
- 参数:
-
| nPropertyType | 要获取或设置的属性类型 |
| pValue | 要设置的属性值的指针 |
| nBufSize | pValue所指向的变量的size大小(单位: 字节) |
- 返回:
- 操作是否成功
| void UiToolbar_Icon::SetHighLightButton |
( |
int |
nIndex |
) |
|
设置当前选中的按钮(高亮) nIndex=-1: 无,>=0: 按钮索引
| MZFC_INLINE void UiToolbar_Icon::SetIconBarType |
( |
int |
nType |
) |
|
| void UiToolbar_Icon::ShowButton |
( |
int |
nIndex, |
|
|
bool |
bShow | |
|
) |
| | |
成员数据文档
该类的文档由以下文件生成: