navigationpanecontainer1.cpp
来自「symbian 下浏览器调用实现的完整源码。可以用了封装自己浏览器。」· C++ 代码 · 共 85 行
CPP
85 行
/**
*
* @brief Definition of CNavigationPaneContainer1
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDES
// Class include
#include "NavigationPaneContainer1.h"
// System includes
// CONSTANTS
// ================= MEMBER FUNCTIONS =======================
/**
* Symbian OS 2 phase constructor.
* Constructs the CNavigationPaneContainer1 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 CNavigationPaneContainer1
*/
CNavigationPaneContainer1* CNavigationPaneContainer1::NewL(const TRect& aRect)
{
CNavigationPaneContainer1* self = CNavigationPaneContainer1::NewLC(aRect);
CleanupStack::Pop(self);
return self;
}
/**
* Symbian OS 2 phase constructor.
* Constructs the CNavigationPaneContainer1 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 CNavigationPaneContainer1
*/
CNavigationPaneContainer1* CNavigationPaneContainer1::NewLC(const TRect& aRect)
{
CNavigationPaneContainer1* self = new (ELeave) CNavigationPaneContainer1;
CleanupStack::PushL(self);
self->ConstructL(aRect);
return self;
}
/**
* 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 CNavigationPaneContainer1::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetRect(aRect);
ActivateL();
}
/**
* Destructor. Frees up memory for the iLabel.
*/
CNavigationPaneContainer1::~CNavigationPaneContainer1()
{
}
/**
* Called by the framework to draw this control. Clears the area in
* aRect.
* @param aRect in which to draw
*/
void CNavigationPaneContainer1::Draw(const TRect& aRect) const
{
CWindowGc& gc = SystemGc();
gc.Clear(aRect);
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?