#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] |
| int CUiStatusBar::OnLButtonUp | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [protected, virtual] |
| int CUiStatusBar::OnMouseMove | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [protected, virtual] |
| 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 | |||
| ) |