#include <UiButton_Image.h>
继承自UiButton。
公有成员 | |
| bool | IsSwapImageZOrder () |
| void | PaintWin (HDC hdc, RECT *prcWin, RECT *prcUpdate) |
| Draw the control on the destinate DC. | |
| void | SetImage_Normal (ImagingHelper *pImag) |
| set the normal image. when the control is destruct, it will not delete the pImag. | |
| void | SetImage_Pressed (ImagingHelper *pImag) |
| set the pressed image. when the control is destruct, it will not delete the pImag. | |
| void | SetMode (int nMode) |
| void | SetTextOffset (int nOffset) |
| Text's Offset to the left edge of the control | |
| void | SwapImageZOrder (bool bSwap) |
| UiButton_Image (void) | |
| virtual | ~UiButton_Image (void) |
保护属性 | |
| bool | m_bSwapImageZOrder |
| ImagingHelper * | m_imgNormal |
| ImagingHelper * | m_imgPressed |
| int | m_nMode |
| int | m_nTextOffset |
| UiButton_Image::UiButton_Image | ( | void | ) |
| virtual UiButton_Image::~UiButton_Image | ( | void | ) | [virtual] |
| bool UiButton_Image::IsSwapImageZOrder | ( | ) |
| void UiButton_Image::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) |
重载UiButton。
| void UiButton_Image::SetImage_Normal | ( | ImagingHelper * | pImag | ) |
set the normal image. when the control is destruct, it will not delete the pImag.
| void UiButton_Image::SetImage_Pressed | ( | ImagingHelper * | pImag | ) |
set the pressed image. when the control is destruct, it will not delete the pImag.
| void UiButton_Image::SetMode | ( | int | nMode | ) |
| void UiButton_Image::SetTextOffset | ( | int | nOffset | ) |
Text's Offset to the left edge of the control
| void UiButton_Image::SwapImageZOrder | ( | bool | bSwap | ) |
bool UiButton_Image::m_bSwapImageZOrder [protected] |
ImagingHelper* UiButton_Image::m_imgNormal [protected] |
ImagingHelper* UiButton_Image::m_imgPressed [protected] |
int UiButton_Image::m_nMode [protected] |
int UiButton_Image::m_nTextOffset [protected] |