WEB开发网
开发学院手机开发Symbian 开发 Symbian S60 3rd 滚动条控件模块 阅读

Symbian S60 3rd 滚动条控件模块

 2010-04-20 15:54:00 来源:WEB开发网   
核心提示:MMyEikVScrollBarFrameObserver& iObserver;CEikScrollBarFrame* iScrollBarFrame;CCoeControl* iParentControl;TInt iRangeVScroll;TInt iPosVScroll;};///#endif//__MY_E

MMyEikVScrollBarFrameObserver& iObserver;

CEikScrollBarFrame* iScrollBarFrame;

CCoeControl* iParentControl;

TInt iRangeVScroll;

TInt iPosVScroll;

};

///////////////////////////////////////////////////

#endif//__MY_EIK_V_SCROLL_BAR_FRAME_H__

//////////////////////////////////////////////////

//MyEikVScrollBarFrame.h

///////////////////////////////////////////////////

#include //CEikScrollBarFrame

#include

#include “MyEikVScrollBarFrame.h”

///////////////////////////////////////////////////

CMyEikVScrollBarFrame* CMyEikVScrollBarFrame::NewL(CCoeControl* aParentWindow,

MMyEikVScrollBarFrameObserver& aObserver,TInt aPos,TInt aRange,TBool aShow)

{

CMyEikVScrollBarFrame* self = new ( ELeave ) CMyEikVScrollBarFrame(aObserver);

CleanupStack::PushL( self );

self->ConstructL(aParentWindow,aPos,aRange,aShow);

CleanupStack::Pop( self );

return self;

}

CMyEikVScrollBarFrame::~CMyEikVScrollBarFrame()

{

if (iScrollBarFrame){delete iScrollBarFrame;iScrollBarFrame = NULL;}

}

CMyEikVScrollBarFrame::CMyEikVScrollBarFrame(

MMyEikVScrollBarFrameObserver& aObserver):iObserver(aObserver)

{

iScrollBarFrame = NULL;

iParentControl = NULL;

iPosVScroll = 0;

iRangeVScroll = 0;

}

TAny CMyEikVScrollBarFrame::ConstructL(CCoeControl* aParentWindow,TInt aPos,TInt aRange,TBool aShow)

{

iParentControl = aParentWindow;

CreateVScrollBar(aParentWindow);

Show(aShow);

SetPosAndRange(aPos,aRange);

}

TAny CMyEikVScrollBarFrame::UpdateScroolBarPosition(TInt aPos,TInt

上一页  1 2 3 4  下一页

Tags:Symbian rd 滚动

编辑录入:coldstar [复制链接] [打 印]
赞助商链接