UiScrollWin类参考

a UiWin container class that could scroll the children. 更多...

#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)


详细描述

a UiWin container class that could scroll the children.

构造及析构函数文档

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]

is the content scrollable

重载UiWin

void UiScrollWin::MoveTopPos ( int  nOffset  )  [virtual]

Scroll the content(vertical)

重载UiWin

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

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

重载UiWin

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

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

重载UiWin

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

called when the control has mouse move message.

重载UiWin

virtual int UiScrollWin::OnTimer ( UINT_PTR  nIDEvent  )  [virtual]

called then Timer arrived.

重载UiWin

void UiScrollWin::Scroll ( int  nOffset  ) 

Scroll the content(vertical)

void UiScrollWin::ScrollStart ( double  fScrollSpeed  )  [virtual]

start scroll

重载UiWin

void UiScrollWin::ScrollStop (  )  [virtual]

stop scroll

重载UiWin

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]

set the content's top position

重载UiWin


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

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