UiPicture2类参考

Picture control, use to view a picture or image 更多...

#include <UiPicture2.h>

继承自UiStatic

所有成员的列表。

公有成员

ImagingHelperGetImage ()
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
ImagingHelperm_pImg


详细描述

Picture control, use to view a picture or image

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.

参见:
UiPicture

构造及析构函数文档

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]


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

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