UiAlphabetBar类参考

Alphabet control 更多...

#include <UiAlphabetBar.h>

继承自UiWin

所有成员的列表。

公有成员

int CalcIndexOfPosition (int xPos, int yPos)
void EnableZoomAlphabet (bool bEnableZoomAlphabet)
 if enabled, a zoom out big round popup pressed alphabet will be show on the left of the control when a alphabet is pressed down.
int GetCount ()
 get the total
MZFC_INLINE int GetCurIndex ()
 get the current pressed alphabet's index. (m_nCurIndex: -1: none, >=0:index of pressed alphabet)
LPCTSTR GetCurLetter ()
 Get the current letter that's pressed
COLORREF GetTextColor_Pressed ()
MZFC_INLINE int GetZoomAlphabetOffset_X ()
MZFC_INLINE int GetZoomAlphabetOffset_Y ()
virtual void Invalidate (RECT *prcUpdate=NULL)
 Invalidate the control's rect of the HWND
MZFC_INLINE bool IsEnableZoomAlphabet ()
virtual int OnLButtonDown (UINT fwKeys, int xPos, int yPos)
 called when the control is pressed down by mouse left button.
virtual int OnLButtonUp (UINT fwKeys, int xPos, int yPos)
 called when the mouse left button is is released on the control
virtual int OnMouseMove (UINT fwKeys, int xPos, int yPos)
 called when the control has mouse move message.
virtual void PaintWin (HDC hdc, RECT *prcWin, RECT *prcUpdate)
 Draw the control on the destinate DC.
void SetTextColor_Pressed (COLORREF clr)
 text's color of pressed alphabet
void SetZoomAlphabetOffset_X (int nXOffset)
 set the offset of the zoom out alphabet.
void SetZoomAlphabetOffset_Y (int nYOffset)
 UiAlphabetBar (void)
 ~UiAlphabetBar (void)

保护属性

bool m_bEnableZoomAlphabet
COLORREF m_crText_Pressed
int m_nCurIndex
int m_nZoomAlphabetOffset_X
int m_nZoomAlphabetOffset_Y


详细描述

Alphabet control

构造及析构函数文档

UiAlphabetBar::UiAlphabetBar ( void   ) 

UiAlphabetBar::~UiAlphabetBar ( void   ) 


成员函数文档

int UiAlphabetBar::CalcIndexOfPosition ( int  xPos,
int  yPos 
)

void UiAlphabetBar::EnableZoomAlphabet ( bool  bEnableZoomAlphabet  ) 

if enabled, a zoom out big round popup pressed alphabet will be show on the left of the control when a alphabet is pressed down.

int UiAlphabetBar::GetCount (  ) 

get the total

MZFC_INLINE int UiAlphabetBar::GetCurIndex (  ) 

get the current pressed alphabet's index. (m_nCurIndex: -1: none, >=0:index of pressed alphabet)

LPCTSTR UiAlphabetBar::GetCurLetter (  ) 

Get the current letter that's pressed

COLORREF UiAlphabetBar::GetTextColor_Pressed (  ) 

MZFC_INLINE int UiAlphabetBar::GetZoomAlphabetOffset_X (  ) 

MZFC_INLINE int UiAlphabetBar::GetZoomAlphabetOffset_Y (  ) 

virtual void UiAlphabetBar::Invalidate ( RECT *  prcUpdate = NULL  )  [virtual]

Invalidate the control's rect of the HWND

参数:
prcUpdate [in] Specify the rect you want to invalidate of the control. NULL specify the whole control.

重载UiWin

MZFC_INLINE bool UiAlphabetBar::IsEnableZoomAlphabet (  ) 

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

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

重载UiWin

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

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

重载UiWin

virtual int UiAlphabetBar::OnMouseMove ( UINT  fwKeys,
int  xPos,
int  yPos 
) [virtual]

called when the control has mouse move message.

重载UiWin

virtual void UiAlphabetBar::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 UiAlphabetBar::SetTextColor_Pressed ( COLORREF  clr  ) 

text's color of pressed alphabet

void UiAlphabetBar::SetZoomAlphabetOffset_X ( int  nXOffset  ) 

set the offset of the zoom out alphabet.

void UiAlphabetBar::SetZoomAlphabetOffset_Y ( int  nYOffset  ) 


成员数据文档

COLORREF UiAlphabetBar::m_crText_Pressed [protected]

int UiAlphabetBar::m_nCurIndex [protected]


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

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