rectangle.cpp

来自「最新官方例子,图形,描述副,基本控件,通讯协议,等等,」· C++ 代码 · 共 53 行

CPP
53
字号
/**
*
* @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 + =
减小字号Ctrl + -
显示快捷键?