gotopagedialog.cpp
来自「Symbian界面设计的C++源代码例子:Designing and build」· C++ 代码 · 共 36 行
CPP
36 行
//
// GoToPageDialog.cpp
//
#include "GoToPageDialog.h"
#include "Pdf.hrh"
#include <Pdf.rsg>
#include <eikdialog.h>
class CGoToPageDialogImp: public CEikDialog
{
public:
CGoToPageDialogImp(TInt& aPage, TInt aMaxPage)
:iPage(aPage), iMaxMage(aMaxPage)
{}
private:
void PreLayoutDynInitL();
TBool OkToExitL(TInt aButtonId);
private:
TInt& iPage;
Tint iMaxPage;
};
void CGoToPageDialogImp::PreLayoutDynInitL()
{
// etc.
}
// Implementation of the static method
TBool GoToPageDialog::RunDlgLD(TInt& aPage, TInt aMaxPage)
{
CEikDialog* imp = new(ELeave) CGoToPageDialogImp(aPage, aMaxPage);
return imp->ExecuteLD(R_GO_TO_PAGE_DIALOG);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?