jewelstartscreen.cpp
来自「symbian下的泡泡龙游戏源码,手机游戏开放新手学习的好资料」· C++ 代码 · 共 50 行
CPP
50 行
/*
* ============================================================================
* Name : CJewelStartScreen from JewelStartScreen.h
* Part of : Jewel
* Created : 02.10.2005 by Thosing
* Implementation notes:
* Initial content was generated by Series 60 Application Wizard.
* Version : 0.1
* Copyright: Another
* ============================================================================
*/
#include "JewelStartScreen.h"
#include "JewelView.h"
#include <fbs.h>
#include <Jewel.mbg>
#include <eikenv.h>
//destructor
CJewelStartScreen::~CJewelStartScreen() {
if(iStartBitmap) delete iStartBitmap;
}
// EPOC default constructor can leave.
void CJewelStartScreen::ConstructL(const TRect& aRect) {
CreateWindowL();
SetRect(aRect);
//ActivateL();
iStartBitmap = CJewelView::LoadBitmapL(EMbmJewelStartup); //load bitmap
}
// Two-phased constructor.
void CJewelStartScreen::Draw(const TRect& aRect) const {
//draw the bitmap
CWindowGc& gc = SystemGc();
gc.SetBrushColor(KRgbBlack);
gc.SetBrushStyle(CFbsBitGc::ESolidBrush);
gc.DrawRect(aRect);
gc.BitBlt(TPoint(2, 2), iStartBitmap);
//draw the text
const CFont* ft=iEikonEnv->TitleFont();
gc.UseFont(ft);
gc.SetPenStyle(CFbsBitGc::ESolidPen);
gc.SetPenSize(TSize(1, 1));
gc.SetPenColor(KRgbWhite);
gc.DrawText(_L("Press any key to start..."), TPoint(20, 200));
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?