⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guiclock8_aboutcontainer.cpp__.htm

📁 symbian clock 源代码..........
💻 HTM
字号:
<html><head><title>Exercise_GUIClock.rar GUIClock8_aboutcontainer.cpp</title>
<LINK href="/inc/read_style.css" type=text/css rel=stylesheet></head>
<body>
<p><a href=http://www.pudn.com>www.pudn.com</a> &gt; <a href="http://www.pudn.com/downloads91/sourcecode/comm/symbian/detail348522.html">Exercise_GUIClock.rar</a> &gt GUIClock8_aboutcontainer.cpp</p><!-- saved from http://www.pudn.com -->
<script src="/inc/gg_read1.js"></script><BR>
<pre name="code" class="cpp">
// GUIClock_CGUIClockAboutContainer.cpp 
// ------------------------------ 
// 
// Copyright (c) 2000 Symbian Ltd.  All rights reserved. 
// 
 
//////////////////////////////////////////////////////////////////////// 
// 
// Source file for the implementation of the  
// application view class - CGUIClockAboutContainer 
// 
//////////////////////////////////////////////////////////////////////// 
 
#include "GUIClock8.h" 
 
#include <stringloader.h> 
 
// 
//             Constructor for the view. 
// 
CGUIClockAboutContainer::CGUIClockAboutContainer() 
{ 
} 
 
 
//             Static NewL() function to start the standard two 
//             phase construction. 
// 
CGUIClockAboutContainer* CGUIClockAboutContainer::NewL(const TRect& aRect) 
{ 
	CGUIClockAboutContainer* self = new(ELeave) CGUIClockAboutContainer; 
	CleanupStack::PushL(self); 
	self->ConstructL(aRect); 
	CleanupStack::Pop(); 
	return self; 
} 
 
 
// 
//             Destructor for the view. 
// 
CGUIClockAboutContainer::~CGUIClockAboutContainer() 
{ 
	if(iAboutString) 
		delete iAboutString; 
} 
 
 
//             Second phase construction. 
// 
void CGUIClockAboutContainer::ConstructL(const TRect& aRect) 
{ 
	iAboutString = StringLoader::LoadL(R_STRING_ABOUT); 
 
	// Control is a window owning control 
	CreateWindowL(); 
	 
	// Extent of the control. This is 
	// the whole rectangle available to application. 
	// The rectangle is passed to us from the application UI. 
	SetRect(aRect); 
	// At this stage, the control is ready to draw so 
	// we tell the UI framework by activating it. 
	ActivateL(); 
} 
 
 
//             Drawing the view - in this example,  
//             consists of drawing a simple outline rectangle 
//             and then drawing the text in the middle. 
//             We use the Normal font supplied by the UI. 
// 
//             In this example, we don't use the redraw 
//             region because it's easier to redraw to 
//             the whole client area. 
// 
void CGUIClockAboutContainer::Draw(const TRect& /*aRect*/) const 
{ 
 
    CWindowGc& gc = SystemGc(); 
 
	gc.Clear(); 
	 
	gc.SetPenColor(TRgb(0,0,0)); 
 
	const CFont*   fontUsed = iCoeEnv->NormalFont(); 
	gc.UseFont(fontUsed); 
	 
	gc.DrawText(*iAboutString,TPoint(5,20)); 
	// Finished using the font 
	gc.DiscardFont(); 
	 
	 
} 
 
 
 
 
 
 
 
 
</pre>
<script src="/inc/gg_read2.js"></script><BR>
<script src="http://s117.cnzz.com/stat.php?id=1236358&web_id=1236358&show=pic" language="JavaScript" charset="gb2312"></script>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -