#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 |
| 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] |
| virtual int UiAlphabetBar::OnLButtonUp | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [virtual] |
| virtual int UiAlphabetBar::OnMouseMove | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [virtual] |
| 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 | ) |
bool UiAlphabetBar::m_bEnableZoomAlphabet [protected] |
COLORREF UiAlphabetBar::m_crText_Pressed [protected] |
int UiAlphabetBar::m_nCurIndex [protected] |
int UiAlphabetBar::m_nZoomAlphabetOffset_X [protected] |
int UiAlphabetBar::m_nZoomAlphabetOffset_Y [protected] |