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

📄 rectangle.cpp

📁 symbian S60 2nd ECom的一个很好的例子
💻 CPP
字号:
/**
*
* @brief Definition of CRectangle
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

// Class Includes
#include "rectangle.h"

// System Includes
#include <w32std.h>

const TInt KStartCoOrd = 30;
const TInt KEndXCoOrd   = 70;
const TInt KEndYCoOrd   = 90;

CRectangle* CRectangle::NewL()
	{
	CRectangle* self = new (ELeave) CRectangle;
	CleanupStack::PushL (self);
	self->ConstructL();
	CleanupStack::Pop();
	return self;
	}



void CRectangle::Draw (CWindowGc& aGraphicsContext) const
	{
    aGraphicsContext.DrawRect(TRect(TPoint(KStartCoOrd ,KStartCoOrd ), TPoint(KEndXCoOrd ,KEndYCoOrd )));

	}




CRectangle::CRectangle()
	{
	}




void CRectangle::ConstructL()
	{
	}




⌨️ 快捷键说明

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