stackdocument.cpp

来自「Symbian 控件的使用」· C++ 代码 · 共 58 行

CPP
58
字号
/*
========================================================================
 Name        : StackDocument.cpp
 Author      : 
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
// [[[ begin generated region: do not modify [Generated User Includes]
#include "StackDocument.h"
#include "StackAppUi.h"
// ]]] end generated region [Generated User Includes]

/**
 * @brief Constructs the document class for the application.
 * @param anApplication the application instance
 */
CStackDocument::CStackDocument( CEikApplication& anApplication )
	: CAknDocument( anApplication )
	{
	}

/**
 * @brief Completes the second phase of Symbian object construction. 
 * Put initialization code that could leave here.  
 */ 
void CStackDocument::ConstructL()
	{
	}
	
/**
 * Symbian OS two-phase constructor.
 *
 * Creates an instance of CStackDocument, constructs it, and
 * returns it.
 *
 * @param aApp the application instance
 * @return the new CStackDocument
 */
CStackDocument* CStackDocument::NewL( CEikApplication& aApp )
	{
	CStackDocument* self = new ( ELeave ) CStackDocument( aApp );
	CleanupStack::PushL( self );
	self->ConstructL();
	CleanupStack::Pop( self );
	return self;
	}

/**
 * @brief Creates the application UI object for this document.
 * @return the new instance
 */	
CEikAppUi* CStackDocument::CreateAppUiL()
	{
	return new ( ELeave ) CStackAppUi;
	}
				

⌨️ 快捷键说明

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