📄 simplemenucontainer.cpp
字号:
/**
*
* @brief Definition of CSimpleMenuContainer
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
// Class include
#include "SimpleMenuContainer.h"
// System includes
#include <stringloader.h> // StringLoader
// ================= MEMBER FUNCTIONS =======================
/**
* Symbian OS 2nd phase constructor. Creates a Window for the controls, which it contains.
* Constructs a label and adds it to the window, which it then activates.
* @param aRect The rectangle for this window
*/
void CSimpleMenuContainer::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetRect(aRect);
ActivateL();
}
/**
* Symbian OS 2 phase constructor.
* Constructs the CSimpleMenuContainer using the NewLC method, popping
* the constructed object from the CleanupStack before returning it.
*
* @param aRect The rectangle for this window
* @return The newly constructed CSimpleMenuContainer
*/
CSimpleMenuContainer* CSimpleMenuContainer::NewL(const TRect& aRect)
{
CSimpleMenuContainer* self = CSimpleMenuContainer::NewLC(aRect);
CleanupStack::Pop(self);
return self;
}
/**
* Symbian OS 2 phase constructor.
* Constructs the CSimpleMenuContainer using the constructor and ConstructL
* method, leaving the constructed object on the CleanupStack before returning it.
*
* @param aRect The rectangle for this window
* @return The newly constructed CSimpleMenuContainer
*/
CSimpleMenuContainer* CSimpleMenuContainer::NewLC(const TRect& aRect)
{
CSimpleMenuContainer* self = new (ELeave) CSimpleMenuContainer;
CleanupStack::PushL(self);
self->ConstructL(aRect);
return self;
}
/**
* Handles the game sub menu options.
* @param aCommandId to select game option
*/
void CSimpleMenuContainer::PlayNewGameVia(TInt /*aCommandId*/)
{
}
/**
* Called by the framework to draw this control. Clears the area in
* aRect.
* @param aRect in which to draw
*/
void CSimpleMenuContainer::Draw(const TRect& aRect) const
{
CWindowGc& gc = SystemGc();
gc.Clear(aRect);
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -