#include <UiScrollWin.h>
继承自UiWin。
公有成员 | |
| virtual int | CalcContentHeight () |
| calculate the content's height (the drawing of vertical scrollbar will called this member,can be derived) | |
| virtual int | CalcContentTopPosH () |
| calculate the content's left position (the drawing of horizontal scrollbar will called this member,can be derived) | |
| virtual int | CalcContentTopPosV () |
| calculate the content's top position (the drawing of vertical scrollbar will called this member,can be derived) | |
| virtual int | CalcContentWidth () |
| calculate the content's width (the drawing of horizontal scrollbar will called this member,can be derived) | |
| virtual bool | IsScrollable () |
| is the content scrollable | |
| void | MoveTopPos (int nOffset) |
| Scroll the content(vertical) | |
| virtual int | OnLButtonDown (UINT fwKeys, int xPos, int yPos) |
| called when the control is pressed down by mouse left button. | |
| virtual int | OnLButtonUp (UINT fwKeys, int xPos, int yPos) |
| called when the mouse left button is is released on the control | |
| virtual int | OnMouseMove (UINT fwKeys, int xPos, int yPos) |
| called when the control has mouse move message. | |
| virtual int | OnTimer (UINT_PTR nIDEvent) |
| called then Timer arrived. | |
| void | Scroll (int nOffset) |
| Scroll the content(vertical) | |
| void | ScrollStart (double fScrollSpeed) |
| start scroll | |
| void | ScrollStop () |
| stop scroll | |
| void | ScrollTo (int nScrollToType=UI_SCROLLTO_TOP, int nDstTopPos=0, bool bAnimate=true) |
| Scroll the content of a control to a position | |
| void | SetTopPos (int nTopPos) |
| set the content's top position | |
| UiScrollWin (void) | |
| ~UiScrollWin (void) | |
| UiScrollWin::UiScrollWin | ( | void | ) |
| UiScrollWin::~UiScrollWin | ( | void | ) |
| virtual int UiScrollWin::CalcContentHeight | ( | ) | [virtual] |
calculate the content's height (the drawing of vertical scrollbar will called this member,can be derived)
重载UiWin。
| virtual int UiScrollWin::CalcContentTopPosH | ( | ) | [virtual] |
calculate the content's left position (the drawing of horizontal scrollbar will called this member,can be derived)
重载UiWin。
| virtual int UiScrollWin::CalcContentTopPosV | ( | ) | [virtual] |
calculate the content's top position (the drawing of vertical scrollbar will called this member,can be derived)
重载UiWin。
| virtual int UiScrollWin::CalcContentWidth | ( | ) | [virtual] |
calculate the content's width (the drawing of horizontal scrollbar will called this member,can be derived)
重载UiWin。
| virtual bool UiScrollWin::IsScrollable | ( | ) | [virtual] |
| void UiScrollWin::MoveTopPos | ( | int | nOffset | ) | [virtual] |
| virtual int UiScrollWin::OnLButtonDown | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [virtual] |
| virtual int UiScrollWin::OnLButtonUp | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [virtual] |
| virtual int UiScrollWin::OnMouseMove | ( | UINT | fwKeys, | |
| int | xPos, | |||
| int | yPos | |||
| ) | [virtual] |
| virtual int UiScrollWin::OnTimer | ( | UINT_PTR | nIDEvent | ) | [virtual] |
| void UiScrollWin::Scroll | ( | int | nOffset | ) |
Scroll the content(vertical)
| void UiScrollWin::ScrollStart | ( | double | fScrollSpeed | ) | [virtual] |
| void UiScrollWin::ScrollStop | ( | ) | [virtual] |
| void UiScrollWin::ScrollTo | ( | int | nScrollToType = UI_SCROLLTO_TOP, |
|
| int | nDstTopPos = 0, |
|||
| bool | bAnimate = true | |||
| ) | [virtual] |
Scroll the content of a control to a position
| nScrollToType | UI_SCROLLTO_TOP, UI_SCROLLTO_BOTTOM, UI_SCROLLTO_POS | |
| nDstTopPos | destinate content top position,only available when nScrollToType==UI_SCROLLTO_POS | |
| bAnimate | whether do animation of scrolling |
重载UiWin。
| void UiScrollWin::SetTopPos | ( | int | nTopPos | ) | [virtual] |