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

📄 blueshareappview.cpp

📁 蓝牙传输文件, symbian3.0 系统下. 2FP没有试过
💻 CPP
字号:
/*
 ============================================================================
 Name		: BlueShareAppView.cpp
 Author	  :
 Copyright   : Your copyright notice
 Description : Application view implementation
 ============================================================================
 */

// INCLUDE FILES
#include <coemain.h>
#include "BlueShareAppView.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CBlueShareAppView::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CBlueShareAppView* CBlueShareAppView::NewL(const TRect& aRect)
{
    CBlueShareAppView* self = CBlueShareAppView::NewLC(aRect);
    CleanupStack::Pop(self);
    return self;
}

// -----------------------------------------------------------------------------
// CBlueShareAppView::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CBlueShareAppView* CBlueShareAppView::NewLC(const TRect& aRect)
{
    CBlueShareAppView* self = new ( ELeave ) CBlueShareAppView;
    CleanupStack::PushL(self);
    self->ConstructL(aRect);
    return self;
}

// -----------------------------------------------------------------------------
// CBlueShareAppView::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CBlueShareAppView::ConstructL(const TRect& aRect)
{
    // Create a window for this application view
    CreateWindowL();

    // Set the windows size
    SetRect(aRect);

    // Activate the window, which makes it ready to be drawn
    ActivateL();
}

// -----------------------------------------------------------------------------
// CBlueShareAppView::CBlueShareAppView()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CBlueShareAppView::CBlueShareAppView()
{
    // No implementation required
}

// -----------------------------------------------------------------------------
// CBlueShareAppView::~CBlueShareAppView()
// Destructor.
// -----------------------------------------------------------------------------
//
CBlueShareAppView::~CBlueShareAppView()
{
    // No implementation required
}

// -----------------------------------------------------------------------------
// CBlueShareAppView::Draw()
// Draws the display.
// -----------------------------------------------------------------------------
//
void CBlueShareAppView::Draw(const TRect& /*aRect*/) const
{
    // Get the standard graphics context
    CWindowGc& gc = SystemGc();

    // Gets the control's extent
    TRect drawRect(Rect());

    // Clears the screen
    gc.Clear(drawRect);

}

// -----------------------------------------------------------------------------
// CBlueShareAppView::SizeChanged()
// Called by framework when the view size is changed.
// -----------------------------------------------------------------------------
//
void CBlueShareAppView::SizeChanged()
{
    DrawNow();
}
// End of File

⌨️ 快捷键说明

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