UiButton_Image类参考

图片按钮.

更多...

#include <UiButton_Image.h>

继承自UiButton

所有成员的列表。

公有成员

void EnableButtonHighlight (BOOL bEnable)
BOOL GetExtendedProperty_UiButton_Image (int nPropertyType, void *pValue, int nBufSize)
 获取或设置对象的扩展属性值
int GetPaintMode ()
 获得图片绘制模式:MZ_PAINTMODE_NORMAL, MZ_PAINTMODE_TILE_H, MZ_PAINTMODE_TILE_V, MZ_PAINTMODE_xxxx, 等.
bool IsSwapImageZOrder ()
void PaintWin (HDC hdc, RECT *prcWin, RECT *prcUpdate)
 绘制控件
void SetEdge_Bottom (int nValue)
 设置边缘(底部)
void SetEdge_Left (int nValue)
 设置边缘(左边)
void SetEdge_Right (int nValue)
 设置边缘(右边)
void SetEdge_Top (int nValue)
 设置边缘(顶部)
BOOL SetExtendedProperty_UiButton_Image (int nPropertyType, void *pValue, int nBufSize)
 获取或设置对象的扩展属性值
void SetImage_Normal (ImagingHelper *pImag)
 设置普通状态的图片.(析构时,控件不负责删除此图片)
void SetImage_Pressed (ImagingHelper *pImag)
 设置按下状态的图片.(析构时,控件不负责删除此图片)
void SetMode (int nMode)
void SetPaintMode (int nMode)
 设置图片绘制模式:MZ_PAINTMODE_NORMAL, MZ_PAINTMODE_TILE_H, MZ_PAINTMODE_TILE_V, MZ_PAINTMODE_xxxx, 等.
void SetTextOffset (int nOffset)
 设置文字与控件左边缘的距离
void SwapImageZOrder (bool bSwap)
 UiButton_Image (void)
virtual ~UiButton_Image (void)

保护属性

bool m_bHighlightEnable
bool m_bSwapImageZOrder
ImagingHelperm_imgNormal
ImagingHelperm_imgPressed
int m_nEdgeBottom
int m_nEdgeLeft
int m_nEdgeRight
int m_nEdgeTop
int m_nMode
int m_nPaintMode
int m_nTextOffset

详细描述

图片按钮.


构造及析构函数文档

UiButton_Image::UiButton_Image ( void   ) 
virtual UiButton_Image::~UiButton_Image ( void   )  [virtual]

成员函数文档

void UiButton_Image::EnableButtonHighlight ( BOOL  bEnable  ) 
BOOL UiButton_Image::GetExtendedProperty_UiButton_Image ( int  nPropertyType,
void *  pValue,
int  nBufSize 
)

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

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

获得图片绘制模式:MZ_PAINTMODE_NORMAL, MZ_PAINTMODE_TILE_H, MZ_PAINTMODE_TILE_V, MZ_PAINTMODE_xxxx, 等.

bool UiButton_Image::IsSwapImageZOrder (  ) 
void UiButton_Image::PaintWin ( HDC  hdcDst,
RECT *  prcWin,
RECT *  prcUpdate 
) [virtual]

绘制控件

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

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

重载UiButton

void UiButton_Image::SetEdge_Bottom ( int  nValue  ) 

设置边缘(底部)

void UiButton_Image::SetEdge_Left ( int  nValue  ) 

设置边缘(左边)

void UiButton_Image::SetEdge_Right ( int  nValue  ) 

设置边缘(右边)

void UiButton_Image::SetEdge_Top ( int  nValue  ) 

设置边缘(顶部)

BOOL UiButton_Image::SetExtendedProperty_UiButton_Image ( int  nPropertyType,
void *  pValue,
int  nBufSize 
)

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

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

设置普通状态的图片.(析构时,控件不负责删除此图片)

void UiButton_Image::SetImage_Pressed ( ImagingHelper pImag  ) 

设置按下状态的图片.(析构时,控件不负责删除此图片)

void UiButton_Image::SetMode ( int  nMode  ) 

设置图片层叠模式. nMode: UI_BUTTON_IMAGE_MODE_NORMAL(普通模式), UI_BUTTON_IMAGE_MODE_ALWAYS_SHOW_NORMAL(普通状态的图片总是显示在底下)

void UiButton_Image::SetPaintMode ( int  nMode  ) 

设置图片绘制模式:MZ_PAINTMODE_NORMAL, MZ_PAINTMODE_TILE_H, MZ_PAINTMODE_TILE_V, MZ_PAINTMODE_xxxx, 等.

void UiButton_Image::SetTextOffset ( int  nOffset  ) 

设置文字与控件左边缘的距离

void UiButton_Image::SwapImageZOrder ( bool  bSwap  ) 

成员数据文档

int UiButton_Image::m_nEdgeLeft [protected]
int UiButton_Image::m_nEdgeTop [protected]
int UiButton_Image::m_nMode [protected]

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

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