CUiStatusBar类参考

滑块控件 更多...

#include <UiStatusBar.h>

继承自UiWin

所有成员的列表。

公有成员

 CUiStatusBar ()
void EnableValueLock (bool lock)
int GetPadpos (void)
int GetVolumeLockMax ()
int GetVolumeLockMin ()
bool IsValueLockEnable ()
void SetPadpos (int iPadpos)
void SetPos (int x, int y, int w, int h, UINT flags=0)
 set the position and size of the control
void SetRange (int min, int max)
void SetSliderBitmap (ImagingHelper *sliderGray, ImagingHelper *sliderHighlight, ImagingHelper *padBitmap, int sliderEndWidth, int padWidth)
 设置进度条的外观
void SetStyle (StatusBarStyle style)
void SetValueLock (int min, int max)
 ~CUiStatusBar ()

保护成员

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
int OnMouseMove (UINT fwKeys, int xPos, int yPos)
 called when the control has mouse move message.
void PaintWin (HDC hdcDst, RECT *prcWin, RECT *prcUpdate)
 Draw the control on the destinate DC.


详细描述

滑块控件

构造及析构函数文档

CUiStatusBar::CUiStatusBar (  ) 

CUiStatusBar::~CUiStatusBar (  ) 


成员函数文档

void CUiStatusBar::EnableValueLock ( bool  lock  ) 

int CUiStatusBar::GetPadpos ( void   ) 

int CUiStatusBar::GetVolumeLockMax (  ) 

int CUiStatusBar::GetVolumeLockMin (  ) 

bool CUiStatusBar::IsValueLockEnable (  ) 

int CUiStatusBar::OnLButtonDown ( UINT  fwKeys,
int  xPos,
int  yPos 
) [protected, virtual]

called when the control is pressed down by mouse left button.

重载UiWin

int CUiStatusBar::OnLButtonUp ( UINT  fwKeys,
int  xPos,
int  yPos 
) [protected, virtual]

called when the mouse left button is is released on the control

重载UiWin

int CUiStatusBar::OnMouseMove ( UINT  fwKeys,
int  xPos,
int  yPos 
) [protected, virtual]

called when the control has mouse move message.

重载UiWin

void CUiStatusBar::PaintWin ( HDC  hdcDst,
RECT *  prcWin,
RECT *  prcUpdate 
) [protected, 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 CUiStatusBar::SetPadpos ( int  iPadpos  ) 

void CUiStatusBar::SetPos ( int  x,
int  y,
int  w,
int  h,
UINT  flags = 0 
) [virtual]

set the position and size of the control

参数:
x X coordinate
y Y coordinate
w width
h height
flags can be a combination of:0,SP_NOSIZE, SP_NOMOVE

重载UiWin

void CUiStatusBar::SetRange ( int  min,
int  max 
)

void CUiStatusBar::SetSliderBitmap ( ImagingHelper sliderGray,
ImagingHelper sliderHighlight,
ImagingHelper padBitmap,
int  sliderEndWidth,
int  padWidth 
)

设置进度条的外观

参数:
sliderGray [in] 滑动条灰色背景部分的图片
sliderHighlight [in] 滑动条高亮前景部分的图片
padBitmap [in] 滑块的图片
sliderEndWidth [in] 滑动条左右两端不规则形状的宽度(中间的部分在绘制时根据控件宽度进行拉伸)
padWidth [in] 滑块实心部分(有的滑块的图片带发光或者四周有透明的效果)的宽度,不一定等于滑块图片的宽度

void CUiStatusBar::SetStyle ( StatusBarStyle  style  )  [inline]

void CUiStatusBar::SetValueLock ( int  min,
int  max 
)


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

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