UiButtonEx类参考

extended button 更多...

#include <UiButtonEx.h>

继承自UiButton

所有成员的列表。

公有成员

DWORD GetDrawTextFormat2 ()
ImagingHelperGetImage1 ()
ImagingHelperGetImage2 ()
int GetImageWidth1 ()
int GetImageWidth2 ()
CMzString & GetText2 ()
COLORREF GetTextColor2 ()
COLORREF GetTextColor2_Pressed ()
int GetTextMaxLen ()
int GetTextMaxLen2 ()
int GetTextOffset ()
int GetTextOffset2 ()
int GetTextSize2 ()
bool IsShowImage1 ()
bool IsShowImage2 ()
virtual void PaintWin (HDC hdcDst, RECT *prcWin, RECT *prcUpdate)
 Draw the control on the destinate DC.
void SetDrawTextFormat2 (DWORD dwFormat)
void SetImage1 (ImagingHelper *img)
 set the image on left side
void SetImage2 (ImagingHelper *img)
 set the image on right side
void SetImageWidth1 (int nWidth)
 set width of the image on left side
void SetImageWidth2 (int nWidth)
 set width of the image on right side
void SetShowHighLight (bool bShow)
void SetShowImage1 (bool bShow)
 set whether show the image on left side
void SetShowImage2 (bool bShow)
 set whether show the image on right side
void SetText2 (LPCTSTR text)
 set the text2 (on the right side of the button)
void SetTextColor2 (COLORREF cr)
void SetTextColor2_Pressed (COLORREF clr)
void SetTextMaxLen (int nOffset)
 set the max text length of text1. 0: no limit
void SetTextMaxLen2 (int nOffset)
 set the max text length of text2. 0: no limit
void SetTextOffset (int nOffset)
 set the offset of the text1 to the left edge
void SetTextOffset2 (int nOffset)
 set the offset of the text2 to the right edge
void SetTextSize2 (int nSize)
 UiButtonEx (void)
 ~UiButtonEx (void)


详细描述

extended button

构造及析构函数文档

UiButtonEx::UiButtonEx ( void   ) 

UiButtonEx::~UiButtonEx ( void   ) 


成员函数文档

DWORD UiButtonEx::GetDrawTextFormat2 (  ) 

ImagingHelper* UiButtonEx::GetImage1 (  ) 

ImagingHelper* UiButtonEx::GetImage2 (  ) 

int UiButtonEx::GetImageWidth1 (  ) 

int UiButtonEx::GetImageWidth2 (  ) 

CMzString& UiButtonEx::GetText2 (  ) 

COLORREF UiButtonEx::GetTextColor2 (  ) 

COLORREF UiButtonEx::GetTextColor2_Pressed (  ) 

int UiButtonEx::GetTextMaxLen (  ) 

int UiButtonEx::GetTextMaxLen2 (  ) 

int UiButtonEx::GetTextOffset (  ) 

int UiButtonEx::GetTextOffset2 (  ) 

int UiButtonEx::GetTextSize2 (  ) 

bool UiButtonEx::IsShowImage1 (  ) 

bool UiButtonEx::IsShowImage2 (  ) 

virtual void UiButtonEx::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 UiButtonEx::SetDrawTextFormat2 ( DWORD  dwFormat  ) 

void UiButtonEx::SetImage1 ( ImagingHelper img  ) 

set the image on left side

void UiButtonEx::SetImage2 ( ImagingHelper img  ) 

set the image on right side

void UiButtonEx::SetImageWidth1 ( int  nWidth  ) 

set width of the image on left side

void UiButtonEx::SetImageWidth2 ( int  nWidth  ) 

set width of the image on right side

void UiButtonEx::SetShowHighLight ( bool  bShow  ) 

void UiButtonEx::SetShowImage1 ( bool  bShow  ) 

set whether show the image on left side

void UiButtonEx::SetShowImage2 ( bool  bShow  ) 

set whether show the image on right side

void UiButtonEx::SetText2 ( LPCTSTR  text  ) 

set the text2 (on the right side of the button)

void UiButtonEx::SetTextColor2 ( COLORREF  cr  ) 

void UiButtonEx::SetTextColor2_Pressed ( COLORREF  clr  ) 

void UiButtonEx::SetTextMaxLen ( int  nOffset  ) 

set the max text length of text1. 0: no limit

void UiButtonEx::SetTextMaxLen2 ( int  nOffset  ) 

set the max text length of text2. 0: no limit

void UiButtonEx::SetTextOffset ( int  nOffset  ) 

set the offset of the text1 to the left edge

void UiButtonEx::SetTextOffset2 ( int  nOffset  ) 

set the offset of the text2 to the right edge

void UiButtonEx::SetTextSize2 ( int  nSize  ) 


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

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