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

📄 square.cpp

📁 国内著名嵌入式培训机构内部资料,内含一些实例代码,包括技术专题书籍
💻 CPP
字号:

/*
* ============================================================================
*  Name     : CSquare from square.cpp
*  Part of  : plugin
*  Created  : 17/11/2003 by Forum Nokia
*  Version  : 1.0
*  Copyright: Forum Nokia
* ============================================================================
*/

// INCLUDE FILES
#include <w32std.h>

#include "square.h"

// Create instance of concrete ECOM interface implementation
CSquare* CSquare::NewL()
    {
    CSquare* self = new (ELeave) CSquare;
    CleanupStack::PushL (self);
    self->ConstructL();
    CleanupStack::Pop(self);
    return self;
    }

// Implementation of CShape
void CSquare::Draw(CWindowGc& aGraphicsContext) const
    {
    const TInt KStartCoOrd = 30;
    const TInt KEndXCoOrd   = 100;
    const TInt KEndYCoOrd   = 100;
    aGraphicsContext.DrawRect(TRect(TPoint(KStartCoOrd ,KStartCoOrd ),
        TPoint(KEndXCoOrd ,KEndYCoOrd )));
    }

// Constructor
CSquare::CSquare()
    {
    }

// Second phase construction.
void CSquare::ConstructL()
    {
    }




⌨️ 快捷键说明

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