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

📄 multiviewsdocument.cpp

📁 演示如何使用Symbian系统的多视图(View)框架。
💻 CPP
字号:
/*
* ==============================================================================
*  Name        : multiviewsdocument.cpp
*  Part of     : MultiViews
*  Interface   :
*  Description :
*  Version     :
*
Copyright (c) 2004 - 2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/


// INCLUDE FILES
#include "MultiViewsAppUi.h"
#include "MultiViewsDocument.h"


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


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

// -----------------------------------------------------------------------------
// CMultiViewsDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMultiViewsDocument* CMultiViewsDocument::NewL( CEikApplication& aApp )
    {
    CMultiViewsDocument* self = NewLC( aApp );
    CleanupStack::Pop( self );
    return self;
    }


// -----------------------------------------------------------------------------
// CMultiViewsDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMultiViewsDocument* CMultiViewsDocument::NewLC( CEikApplication& aApp )
    {
    CMultiViewsDocument* self = new ( ELeave ) CMultiViewsDocument( aApp );
    CleanupStack::PushL( self );
    self->ConstructL();
    return self;
    }

// -----------------------------------------------------------------------------
// CMultiViewsDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CMultiViewsDocument::ConstructL()
    {
    // No implementation required
    }

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

// -----------------------------------------------------------------------------
// CMultiViewsDocument::CreateAppUiL()
// Create the application user interface, and return a pointer to it
// -----------------------------------------------------------------------------
//
CEikAppUi* CMultiViewsDocument::CreateAppUiL()
    {
    return( static_cast<CEikAppUi*>( new ( ELeave ) CMultiViewsAppUi ) );
    }

// End of File

⌨️ 快捷键说明

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