UiButtonEx类参考

扩展按钮 更多...

#include <UiButtonEx.h>

继承自UiButton

所有成员的列表。

公有成员

DWORD GetDrawTextFormat2 ()
 获得右边的文本绘制格式
DWORD GetDrawTextFormat3 ()
 获得下边的文本绘制格式
BOOL GetExtendedProperty_UiButtonEx (int nPropertyType, void *pValue, int nBufSize)
 获取或设置对象的扩展属性值
ImagingHelperGetImage1 ()
ImagingHelperGetImage2 ()
INT GetImageOffset1 (void)
INT GetImageOffset2 (void)
int GetImageWidth1 ()
int GetImageWidth2 ()
CMzString & GetText2 ()
 获得右边的文本
CMzString & GetText3 ()
 获得下边的文本
COLORREF GetTextColor2 ()
 获得右边的文本颜色
COLORREF GetTextColor2_Pressed ()
COLORREF GetTextColor3 ()
 获得下边的文本颜色
COLORREF GetTextColor3_Pressed ()
int GetTextMaxLen ()
int GetTextMaxLen2 ()
int GetTextMaxLen3 ()
int GetTextOffset ()
int GetTextOffset2 ()
int GetTextOffset3 ()
int GetTextSize2 ()
 获得右边的文本字体尺寸
int GetTextSize3 ()
 获得下边的文本字体尺寸
bool IsShowImage1 ()
bool IsShowImage2 ()
virtual void PaintWin (HDC hdcDst, RECT *prcWin, RECT *prcUpdate)
 绘制控件
void SetDrawTextFormat2 (DWORD dwFormat)
 设置右边的文本绘制格式
void SetDrawTextFormat3 (DWORD dwFormat)
 设置下边的文本绘制格式
BOOL SetExtendedProperty_UiButtonEx (int nPropertyType, void *pValue, int nBufSize)
 获取或设置对象的扩展属性值
void SetImage1 (ImagingHelper *img, ImagingHelper *img_pressed)
void SetImage1 (ImagingHelper *img)
 设置左边图片
void SetImage2 (ImagingHelper *img, ImagingHelper *img_pressed)
void SetImage2 (ImagingHelper *img)
 设置右边图片
void SetImageOffset1 (INT offset)
 设置左边图片距离控件左侧边缘的距离
void SetImageOffset2 (INT offset)
 设置右边图片距离控件右侧边缘的距离
void SetImageWidth1 (int nWidth)
 设置左边图片的宽度,图片居中显示
void SetImageWidth2 (int nWidth)
 设置右边图片的宽度,图片居中显示
void SetShowHighLight (bool bShow)
 设置按下状态时是否显示高亮
void SetShowImage1 (bool bShow)
 设置是否显示左边图片
void SetShowImage2 (bool bShow)
 设置是否显示右边图片
void SetText2 (LPCTSTR text)
 设置右边的文本
void SetText3 (LPCTSTR text)
 设置下边的文本
void SetTextColor2 (COLORREF cr)
 设置右边的文本颜色
void SetTextColor2_Pressed (COLORREF clr)
void SetTextColor3 (COLORREF cr)
 设置下边的文本颜色
void SetTextColor3_Pressed (COLORREF clr)
void SetTextMaxLen (int nOffset)
 设置左边文本的最大长度. 0表示不限制
void SetTextMaxLen2 (int nOffset)
 设置右边文本的最大长度. 0表示不限制
void SetTextMaxLen3 (int nOffset)
 设置下边文本的最大长度. 0表示不限制
void SetTextOffset (int nOffset)
 设置左边文本的偏移
void SetTextOffset2 (int nOffset)
 设置右边文本的偏移
void SetTextOffset3 (int nOffset)
 设置下边文本的偏移
void SetTextSize2 (int nSize)
 设置右边的文本字体尺寸
void SetTextSize3 (int nSize)
 设置下边的文本字体尺寸
 UiButtonEx (void)
 ~UiButtonEx (void)

详细描述

扩展按钮

UiButtonEx 拥有两个图片和三个文本,图片分别在左边和右边,Text在左边图片的右上方,Text2位于右方图片的左方,Text3位于Text的下方 Text Image1 Text2 Image2 Text3


构造及析构函数文档

UiButtonEx::UiButtonEx ( void   ) 
UiButtonEx::~UiButtonEx ( void   ) 

成员函数文档

DWORD UiButtonEx::GetDrawTextFormat2 (  ) 

获得右边的文本绘制格式

DWORD UiButtonEx::GetDrawTextFormat3 (  ) 

获得下边的文本绘制格式

BOOL UiButtonEx::GetExtendedProperty_UiButtonEx ( int  nPropertyType,
void *  pValue,
int  nBufSize 
)

获取或设置对象的扩展属性值

参数:
nPropertyType 要获取或设置的属性类型
pValue 要获取或设置的属性值的指针
nBufSize pValue所指向的变量的size大小(单位: 字节)
返回:
操作是否成功
ImagingHelper* UiButtonEx::GetImage1 (  ) 
ImagingHelper* UiButtonEx::GetImage2 (  ) 
INT UiButtonEx::GetImageOffset1 ( void   ) 
INT UiButtonEx::GetImageOffset2 ( void   ) 
int UiButtonEx::GetImageWidth1 (  ) 
int UiButtonEx::GetImageWidth2 (  ) 
CMzString& UiButtonEx::GetText2 (  ) 

获得右边的文本

CMzString& UiButtonEx::GetText3 (  ) 

获得下边的文本

COLORREF UiButtonEx::GetTextColor2 (  ) 

获得右边的文本颜色

COLORREF UiButtonEx::GetTextColor2_Pressed (  ) 
COLORREF UiButtonEx::GetTextColor3 (  ) 

获得下边的文本颜色

COLORREF UiButtonEx::GetTextColor3_Pressed (  ) 
int UiButtonEx::GetTextMaxLen (  ) 
int UiButtonEx::GetTextMaxLen2 (  ) 
int UiButtonEx::GetTextMaxLen3 (  ) 
int UiButtonEx::GetTextOffset (  ) 
int UiButtonEx::GetTextOffset2 (  ) 
int UiButtonEx::GetTextOffset3 (  ) 
int UiButtonEx::GetTextSize2 (  ) 

获得右边的文本字体尺寸

int UiButtonEx::GetTextSize3 (  ) 

获得下边的文本字体尺寸

bool UiButtonEx::IsShowImage1 (  ) 
bool UiButtonEx::IsShowImage2 (  ) 
virtual void UiButtonEx::PaintWin ( HDC  hdcDst,
RECT *  prcWin,
RECT *  prcUpdate 
) [virtual]

绘制控件

重载此函数可以自定义控件的绘制

参数:
hdcDst 目的DC
prcWin 控件所在区域(以HDC的左上角为原点)
prcUpdate 需要更新的区域(以HDC的左上角为原点)

重载UiButton

void UiButtonEx::SetDrawTextFormat2 ( DWORD  dwFormat  ) 

设置右边的文本绘制格式

void UiButtonEx::SetDrawTextFormat3 ( DWORD  dwFormat  ) 

设置下边的文本绘制格式

BOOL UiButtonEx::SetExtendedProperty_UiButtonEx ( int  nPropertyType,
void *  pValue,
int  nBufSize 
)

获取或设置对象的扩展属性值

参数:
nPropertyType 要获取或设置的属性类型
pValue 要设置的属性值的指针
nBufSize pValue所指向的变量的size大小(单位: 字节)
返回:
操作是否成功
void UiButtonEx::SetImage1 ( ImagingHelper img,
ImagingHelper img_pressed 
)
void UiButtonEx::SetImage1 ( ImagingHelper img  ) 

设置左边图片

void UiButtonEx::SetImage2 ( ImagingHelper img,
ImagingHelper img_pressed 
)
void UiButtonEx::SetImage2 ( ImagingHelper img  ) 

设置右边图片

void UiButtonEx::SetImageOffset1 ( INT  offset  ) 

设置左边图片距离控件左侧边缘的距离

void UiButtonEx::SetImageOffset2 ( INT  offset  ) 

设置右边图片距离控件右侧边缘的距离

void UiButtonEx::SetImageWidth1 ( int  nWidth  ) 

设置左边图片的宽度,图片居中显示

void UiButtonEx::SetImageWidth2 ( int  nWidth  ) 

设置右边图片的宽度,图片居中显示

void UiButtonEx::SetShowHighLight ( bool  bShow  ) 

设置按下状态时是否显示高亮

void UiButtonEx::SetShowImage1 ( bool  bShow  ) 

设置是否显示左边图片

void UiButtonEx::SetShowImage2 ( bool  bShow  ) 

设置是否显示右边图片

void UiButtonEx::SetText2 ( LPCTSTR  text  ) 

设置右边的文本

void UiButtonEx::SetText3 ( LPCTSTR  text  ) 

设置下边的文本

void UiButtonEx::SetTextColor2 ( COLORREF  cr  ) 

设置右边的文本颜色

void UiButtonEx::SetTextColor2_Pressed ( COLORREF  clr  ) 
void UiButtonEx::SetTextColor3 ( COLORREF  cr  ) 

设置下边的文本颜色

void UiButtonEx::SetTextColor3_Pressed ( COLORREF  clr  ) 
void UiButtonEx::SetTextMaxLen ( int  nOffset  ) 

设置左边文本的最大长度. 0表示不限制

void UiButtonEx::SetTextMaxLen2 ( int  nOffset  ) 

设置右边文本的最大长度. 0表示不限制

void UiButtonEx::SetTextMaxLen3 ( int  nOffset  ) 

设置下边文本的最大长度. 0表示不限制

void UiButtonEx::SetTextOffset ( int  nOffset  ) 

设置左边文本的偏移

void UiButtonEx::SetTextOffset2 ( int  nOffset  ) 

设置右边文本的偏移

void UiButtonEx::SetTextOffset3 ( int  nOffset  ) 

设置下边文本的偏移

void UiButtonEx::SetTextSize2 ( int  nSize  ) 

设置右边的文本字体尺寸

void UiButtonEx::SetTextSize3 ( int  nSize  ) 

设置下边的文本字体尺寸


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

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