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

📄 cssyncappview.cpp

📁 Symbian Client_Server_Application
💻 CPP
字号:
/*
* ==============================================================================
*  Name        :CSSyncView.cpp
*  Part of     : clientserversync
*  Interface   : 
*  Description : 
*  Version     : 
* ==============================================================================
*/

// INCLUDE FILES
#include <coemain.h>
#include <eikenv.h>

#include <avkon.rsg>
#include "CSSyncAppView.h"
#include "CSSyncDocument.h"

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

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

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

// -----------------------------------------------------------------------------
// CCSSyncAppView::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CCSSyncAppView::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();
    }

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


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


// -----------------------------------------------------------------------------
// CCSSyncAppView::Draw()
// Draws the display.
// -----------------------------------------------------------------------------
//
void CCSSyncAppView::Draw( const TRect& /*aRect*/ ) const
    {
    CWindowGc& gc = SystemGc();
    gc.Clear( Rect() );
   	}

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

⌨️ 快捷键说明

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