#include <UiToolbar_Icon.h>
继承自UiWin。
公有成员 | |
| int | CalcIndexOfPos (int x, int y) |
| void | EnableButton (int nIndex, bool bEnable) |
| int | GetButtonCount () |
| int | GetButtonHighLightGrade (int nIndex) |
| int | GetHighLightButton () |
| MZFC_INLINE int | GetIconBarType () |
| bool | IsButtonEnabled (int nIndex) |
| get the enable/disable property of the specify index button | |
| bool | IsButtonShow (int nIndex) |
| is the button show / hide | |
| void | LoadButtonIcon (int nIndex, HINSTANCE hInst, LPCWSTR lpResType, LPCWSTR lpResName) |
| load the specify button's icon | |
| void | LoadButtonIcon_Disabled (int nIndex, HINSTANCE hInst, LPCWSTR lpResType, LPCWSTR lpResName) |
| load the specify button's icon when the button is disable | |
| 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 | SetButtonCount (int nCount) |
| void | SetButtonHighLightGrade (int nIndex, int nGrade) |
| void | SetHighLightButton (int nIndex) |
| MZFC_INLINE void | SetIconBarType (int nType) |
| void | ShowButton (int nIndex, bool bShow) |
| show / hide the button | |
| UiToolbar_Icon (void) | |
| ~UiToolbar_Icon (void) | |
保护属性 | |
| bool | m_bButtonEnables [MAX_ICONTOOLBAR_BUTTON] |
| bool | m_bButtonShows [MAX_ICONTOOLBAR_BUTTON] |
| ImagingHelper | m_Images [MAX_ICONTOOLBAR_BUTTON] |
| ImagingHelper | m_ImagesDisabled [MAX_ICONTOOLBAR_BUTTON] |
| int | m_nBarType |
| int | m_nButtonCount |
| int | m_nButtonHighLightGrades [MAX_ICONTOOLBAR_BUTTON] |
| int | m_nHighLightIndex |
| int | m_nLButtonDown_Index |
when click an icon of the toolbar, will send a MZ_WM_COMMAND message to the container window
| UiToolbar_Icon::UiToolbar_Icon | ( | void | ) |
| UiToolbar_Icon::~UiToolbar_Icon | ( | void | ) |
| int UiToolbar_Icon::CalcIndexOfPos | ( | int | x, | |
| int | y | |||
| ) |
| void UiToolbar_Icon::EnableButton | ( | int | nIndex, | |
| bool | bEnable | |||
| ) |
set the enable/disable property of the specify index button nIndex >=0 is the index of the button to set
| int UiToolbar_Icon::GetButtonCount | ( | ) |
| int UiToolbar_Icon::GetButtonHighLightGrade | ( | int | nIndex | ) |
| int UiToolbar_Icon::GetHighLightButton | ( | ) |
| MZFC_INLINE int UiToolbar_Icon::GetIconBarType | ( | ) |
| bool UiToolbar_Icon::IsButtonEnabled | ( | int | nIndex | ) |
get the enable/disable property of the specify index button
| bool UiToolbar_Icon::IsButtonShow | ( | int | nIndex | ) |
is the button show / hide
| void UiToolbar_Icon::LoadButtonIcon | ( | int | nIndex, | |
| HINSTANCE | hInst, | |||
| LPCWSTR | lpResType, | |||
| LPCWSTR | lpResName | |||
| ) |
load the specify button's icon
| void UiToolbar_Icon::LoadButtonIcon_Disabled | ( | int | nIndex, | |
| HINSTANCE | hInst, | |||
| LPCWSTR | lpResType, | |||
| LPCWSTR | lpResName | |||
| ) |
load the specify button's icon when the button is disable
| int UiToolbar_Icon::OnLButtonDown | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [virtual] |
| int UiToolbar_Icon::OnLButtonUp | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [virtual] |
| void UiToolbar_Icon::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_Icon::SetButtonCount | ( | int | nCount | ) |
| void UiToolbar_Icon::SetButtonHighLightGrade | ( | int | nIndex, | |
| int | nGrade | |||
| ) |
| void UiToolbar_Icon::SetHighLightButton | ( | int | nIndex | ) |
set the high-light button: nIndex=-1: none,>=0: index of the button
| MZFC_INLINE void UiToolbar_Icon::SetIconBarType | ( | int | nType | ) |
| void UiToolbar_Icon::ShowButton | ( | int | nIndex, | |
| bool | bShow | |||
| ) |
show / hide the button
bool UiToolbar_Icon::m_bButtonEnables[MAX_ICONTOOLBAR_BUTTON] [protected] |
bool UiToolbar_Icon::m_bButtonShows[MAX_ICONTOOLBAR_BUTTON] [protected] |
ImagingHelper UiToolbar_Icon::m_Images[MAX_ICONTOOLBAR_BUTTON] [protected] |
ImagingHelper UiToolbar_Icon::m_ImagesDisabled[MAX_ICONTOOLBAR_BUTTON] [protected] |
int UiToolbar_Icon::m_nBarType [protected] |
int UiToolbar_Icon::m_nButtonCount [protected] |
int UiToolbar_Icon::m_nButtonHighLightGrades[MAX_ICONTOOLBAR_BUTTON] [protected] |
int UiToolbar_Icon::m_nHighLightIndex [protected] |
int UiToolbar_Icon::m_nLButtonDown_Index [protected] |