UiToolbar_Text类参考

Text button toolbar 更多...

#include <UiToolbar_Text.h>

继承自UiWin

所有成员的列表。

公有成员

int CalcIndexOfPos (int x, int y)
void EnableButton (int nIndex, bool bEnable)
void EnableLeftArrow (bool bEnable)
 Enable the left arrow(true:visible, false:hide)
CMzString GetButtonText (int nIndex)
COLORREF GetDisableTextColor ()
 get the text color of the buttons' text when the button is disabled
int GetHighLightButton ()
 get the high-light button
MZFC_INLINE int GetTextBarType ()
bool IsButtonEnabled (int nIndex)
 is the button enable
bool IsButtonShow (int nIndex)
 is the button show or hide
bool IsEnableLeftArrow ()
 is Enable the left arrow
int OnLButtonDown (UINT fwKeys, int xPos, int yPos)
 called when the control is pressed down by mouse left button.
int OnLButtonUp (UINT fwKeys, int xPos, int yPos)
 called when the mouse left button is is released on the control
void PaintWin (HDC hdcDst, RECT *prcWin, RECT *prcUpdate)
 Draw the control on the destinate DC.
void SetButton (int nIndex, bool bShow, bool bEnable, wchar_t *strText)
 set the button's properties
void SetButtonText (int nIndex, wchar_t *strText)
void SetDisableTextColor (COLORREF clr)
 set the text color of the buttons' text when the button is disabled
void SetHighLightButton (int nIndex)
 set the high-light button
MZFC_INLINE void SetTextBarType (int nType)
void ShowButton (int nIndex, bool bShow)
 show or hide the button
 UiToolbar_Text (void)
 ~UiToolbar_Text (void)

保护属性

bool m_bButtonEnables [MZ_UI_TOOLBAR_TEXT_BUTTON_COUNT]
bool m_bButtonShows [MZ_UI_TOOLBAR_TEXT_BUTTON_COUNT]
bool m_bShowLeftArrow
CMzString m_ButtonTexts [MZ_UI_TOOLBAR_TEXT_BUTTON_COUNT]
COLORREF m_clrDisableText
int m_nBarType
int m_nHighLightIndex
int m_nLButtonDown_Index


详细描述

Text button toolbar

Text button toolbar has three buttons,from left to right the index is 0,1,2 when click, will send MZ_WM_COMMAND message to its container window

参见:
MZ_WM_COMMAND

构造及析构函数文档

UiToolbar_Text::UiToolbar_Text ( void   ) 

UiToolbar_Text::~UiToolbar_Text ( void   ) 


成员函数文档

int UiToolbar_Text::CalcIndexOfPos ( int  x,
int  y 
)

void UiToolbar_Text::EnableButton ( int  nIndex,
bool  bEnable 
)

set the Enable property of the button nIndex 0,1,2

void UiToolbar_Text::EnableLeftArrow ( bool  bEnable  ) 

Enable the left arrow(true:visible, false:hide)

CMzString UiToolbar_Text::GetButtonText ( int  nIndex  ) 

set the text of a button nIndex 0,1,2

COLORREF UiToolbar_Text::GetDisableTextColor (  ) 

get the text color of the buttons' text when the button is disabled

int UiToolbar_Text::GetHighLightButton (  ) 

get the high-light button

MZFC_INLINE int UiToolbar_Text::GetTextBarType (  ) 

bool UiToolbar_Text::IsButtonEnabled ( int  nIndex  ) 

is the button enable

bool UiToolbar_Text::IsButtonShow ( int  nIndex  ) 

is the button show or hide

bool UiToolbar_Text::IsEnableLeftArrow (  ) 

is Enable the left arrow

int UiToolbar_Text::OnLButtonDown ( UINT  fwKeys,
int  xPos,
int  yPos 
) [virtual]

called when the control is pressed down by mouse left button.

重载UiWin

int UiToolbar_Text::OnLButtonUp ( UINT  fwKeys,
int  xPos,
int  yPos 
) [virtual]

called when the mouse left button is is released on the control

重载UiWin

void UiToolbar_Text::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)

重载UiWin

void UiToolbar_Text::SetButton ( int  nIndex,
bool  bShow,
bool  bEnable,
wchar_t *  strText 
)

set the button's properties

参数:
nIndex index of the button to be set
bShow visible property
bEnable Enable/Disable
strText Text of the button

void UiToolbar_Text::SetButtonText ( int  nIndex,
wchar_t *  strText 
)

set the text of a button nIndex 0,1,2

void UiToolbar_Text::SetDisableTextColor ( COLORREF  clr  ) 

set the text color of the buttons' text when the button is disabled

void UiToolbar_Text::SetHighLightButton ( int  nIndex  ) 

set the high-light button

MZFC_INLINE void UiToolbar_Text::SetTextBarType ( int  nType  ) 

void UiToolbar_Text::ShowButton ( int  nIndex,
bool  bShow 
)

show or hide the button


成员数据文档

bool UiToolbar_Text::m_bButtonEnables[MZ_UI_TOOLBAR_TEXT_BUTTON_COUNT] [protected]

bool UiToolbar_Text::m_bButtonShows[MZ_UI_TOOLBAR_TEXT_BUTTON_COUNT] [protected]

CMzString UiToolbar_Text::m_ButtonTexts[MZ_UI_TOOLBAR_TEXT_BUTTON_COUNT] [protected]

COLORREF UiToolbar_Text::m_clrDisableText [protected]

int UiToolbar_Text::m_nBarType [protected]


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

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