#include <UiPicture2.h>
继承自UiStatic。
公有成员 | |
| ImagingHelper * | GetImage () |
| int | GetPaintMode () |
| void | PaintWin (HDC hdc, RECT *prcWin, RECT *prcUpdate) |
| Draw the control on the destinate DC. | |
| void | SetEdge_Bottom (int nValue) |
| void | SetEdge_Left (int nValue) |
| void | SetEdge_Right (int nValue) |
| void | SetEdge_Top (int nValue) |
| void | SetImage (ImagingHelper *pImg) |
| set the image | |
| void | SetPaintMode (int nMode) |
| UiPicture2 (void) | |
| ~UiPicture2 (void) | |
保护属性 | |
| int | m_nEdgeBottom |
| int | m_nEdgeLeft |
| int | m_nEdgeRight |
| int | m_nEdgeTop |
| int | m_nPaintMode |
| ImagingHelper * | m_pImg |
UiPicture2::SetEdge_XXXX() are used to set the edge sizes that doesn't attend stretch or tile
the meaning of Edge:the sizes that doesn't attend stretch or tile,include left, right, top, bottom four edges.
UiPicture2::SetPaintMode() is used to set the paint mode of the picture,see MZ_PAINTMODE_XXXX。
the meaning of PaintMode:the paint mode of the middle part(not include the edges)
MZ_PAINTMODE_NORMAL: edges are not available
MZ_PAINTMODE_STRETCH & MZ_PAINTMODE_TILE,SetEdge_Top/SetEdge_Bottom/SetEdge_Left/SetEdge_Right is available.
MZ_PAINTMODE_TILE_V & MZ_PAINTMODE_STRETCH_V,SetEdge_Top/SetEdge_Bottom is available.
MZ_PAINTMODE_TILE_H & MZ_PAINTMODE_STRETCH_H,SetEdge_Left/SetEdge_Right is available.
| UiPicture2::UiPicture2 | ( | void | ) |
| UiPicture2::~UiPicture2 | ( | void | ) |
| ImagingHelper* UiPicture2::GetImage | ( | ) |
| int UiPicture2::GetPaintMode | ( | ) |
| void UiPicture2::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) |
重载UiStatic。
| void UiPicture2::SetEdge_Bottom | ( | int | nValue | ) |
| void UiPicture2::SetEdge_Left | ( | int | nValue | ) |
| void UiPicture2::SetEdge_Right | ( | int | nValue | ) |
| void UiPicture2::SetEdge_Top | ( | int | nValue | ) |
| void UiPicture2::SetImage | ( | ImagingHelper * | pImg | ) |
set the image
| void UiPicture2::SetPaintMode | ( | int | nMode | ) |
int UiPicture2::m_nEdgeBottom [protected] |
int UiPicture2::m_nEdgeLeft [protected] |
int UiPicture2::m_nEdgeRight [protected] |
int UiPicture2::m_nEdgeTop [protected] |
int UiPicture2::m_nPaintMode [protected] |
ImagingHelper* UiPicture2::m_pImg [protected] |