UiButton_Image类参考

Image Button, Text on top. 更多...

#include <UiButton_Image.h>

继承自UiButton

所有成员的列表。

公有成员

bool IsSwapImageZOrder ()
void PaintWin (HDC hdc, RECT *prcWin, RECT *prcUpdate)
 Draw the control on the destinate DC.
void SetImage_Normal (ImagingHelper *pImag)
 set the normal image. when the control is destruct, it will not delete the pImag.
void SetImage_Pressed (ImagingHelper *pImag)
 set the pressed image. when the control is destruct, it will not delete the pImag.
void SetMode (int nMode)
void SetTextOffset (int nOffset)
 Text's Offset to the left edge of the control
void SwapImageZOrder (bool bSwap)
 UiButton_Image (void)
virtual ~UiButton_Image (void)

保护属性

bool m_bSwapImageZOrder
ImagingHelperm_imgNormal
ImagingHelperm_imgPressed
int m_nMode
int m_nTextOffset


详细描述

Image Button, Text on top.

构造及析构函数文档

UiButton_Image::UiButton_Image ( void   ) 

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


成员函数文档

bool UiButton_Image::IsSwapImageZOrder (  ) 

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

Draw the control on the destinate DC.

Override this member function to define your own drawings of the control

参数:
hdcDst Destinate device contact
prcWin The Rect of the control(hdc 's left-top is the origin)
prcUpdate Rect of the hdc that need to be update(hdc 's left-top is the origin)

重载UiButton

void UiButton_Image::SetImage_Normal ( ImagingHelper pImag  ) 

set the normal image. when the control is destruct, it will not delete the pImag.

void UiButton_Image::SetImage_Pressed ( ImagingHelper pImag  ) 

set the pressed image. when the control is destruct, it will not delete the pImag.

void UiButton_Image::SetMode ( int  nMode  ) 

void UiButton_Image::SetTextOffset ( int  nOffset  ) 

Text's Offset to the left edge of the control

void UiButton_Image::SwapImageZOrder ( bool  bSwap  ) 


成员数据文档

int UiButton_Image::m_nMode [protected]


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

Generated at Fri Feb 20 15:17:30 2009 for Meizu M8 MZFC Documentation by 魅族手机