UiToolTips类参考

#include <UiToolTips.h>

继承自UiWin

所有成员的列表。

公有成员

int CalcArrowIndex ()
int CalcIndexOfPos (int x, int y)
void EnableUpwardArrow (bool bEnable)
int GetButtonCount ()
CMzStringW GetButtonText (int nIndex)
int GetButtonWidth ()
POINT GetMousePos ()
void Hide (WinManager *pWinManager)
bool IsButtonEnabled (int nIndex)
bool IsButtonShowed (int nIndex)
bool IsUpwardArrowEnable ()
int OnLButtonDown (UINT fwKeys, int xPos, int yPos)
 当控件被左键按下时,此函数会被调用.
int OnLButtonUp (UINT fwKeys, int xPos, int yPos)
 当控件被左键放开时,此函数会被调用.
void PaintWin (HDC hdcDst, RECT *prcWin, RECT *prcUpdate)
 绘制控件
void SetButtonCount (int nCount)
void SetButtonText (int nIndex, const wchar_t *strText)
void SetMousePos (int nXPos, int nYPos)
void Show (WinManager *pWinManager)
 UiToolTips (void)
void UpdatePos (int xPos, int yPos, int xArrowPos, int yArrorPos)
 by duzhenhui
 ~UiToolTips (void)

公有属性

IUiMovingBarListenerm_pListener

保护属性

bool m_bButtonEnables [MZ_UI_TOOLTIPS_TEXT_BUTTON_COUNT]
bool m_bButtonShows [MZ_UI_TOOLTIPS_TEXT_BUTTON_COUNT]
bool m_bIsUpwardArrowEnable
bool m_bMousePressed
CMzStringW m_ButtonTexts [MZ_UI_TOOLTIPS_TEXT_BUTTON_COUNT]
POINT m_MousePos
int m_nButtonCount
int m_nButtonWidth
int m_nHighLightButtonIndex
int m_nLButtonDown_Index
int m_nMouseXPos
int m_nMouseYPos
ImagingHelperm_ToolTips_BG
ImagingHelperm_ToolTips_Line
ImagingHelperm_ToolTipsArrow
ImagingHelperm_ToolTipsArrowHL
ImagingHelperm_ToolTipsL_Pressed
ImagingHelperm_ToolTipsM_Pressed
ImagingHelperm_ToolTipsR_Pressed
ImagingHelperm_ToolTipsUpwardArrow
ImagingHelperm_ToolTipsUpwardArrow_HL

构造及析构函数文档

UiToolTips::UiToolTips ( void   ) 
UiToolTips::~UiToolTips ( void   ) 

成员函数文档

int UiToolTips::CalcArrowIndex (  ) 
int UiToolTips::CalcIndexOfPos ( int  x,
int  y 
)
void UiToolTips::EnableUpwardArrow ( bool  bEnable  ) 
int UiToolTips::GetButtonCount (  ) 
CMzStringW UiToolTips::GetButtonText ( int  nIndex  ) 
int UiToolTips::GetButtonWidth (  ) 
POINT UiToolTips::GetMousePos (  ) 
void UiToolTips::Hide ( WinManager pWinManager  ) 
bool UiToolTips::IsButtonEnabled ( int  nIndex  ) 
bool UiToolTips::IsButtonShowed ( int  nIndex  ) 
bool UiToolTips::IsUpwardArrowEnable (  ) 
int UiToolTips::OnLButtonDown ( UINT  fwKeys,
int  xPos,
int  yPos 
) [virtual]

当控件被左键按下时,此函数会被调用.

重载UiWin

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

当控件被左键放开时,此函数会被调用.

重载UiWin

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

绘制控件

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

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

重载UiWin

void UiToolTips::SetButtonCount ( int  nCount  ) 
void UiToolTips::SetButtonText ( int  nIndex,
const wchar_t *  strText 
)
void UiToolTips::SetMousePos ( int  nXPos,
int  nYPos 
)
void UiToolTips::Show ( WinManager pWinManager  ) 
void UiToolTips::UpdatePos ( int  xPos,
int  yPos,
int  xArrowPos,
int  yArrorPos 
)

by duzhenhui


成员数据文档

bool UiToolTips::m_bButtonEnables[MZ_UI_TOOLTIPS_TEXT_BUTTON_COUNT] [protected]
bool UiToolTips::m_bButtonShows[MZ_UI_TOOLTIPS_TEXT_BUTTON_COUNT] [protected]
bool UiToolTips::m_bMousePressed [protected]
CMzStringW UiToolTips::m_ButtonTexts[MZ_UI_TOOLTIPS_TEXT_BUTTON_COUNT] [protected]
POINT UiToolTips::m_MousePos [protected]
int UiToolTips::m_nButtonCount [protected]
int UiToolTips::m_nButtonWidth [protected]
int UiToolTips::m_nMouseXPos [protected]
int UiToolTips::m_nMouseYPos [protected]

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

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