📄 wikisecuresocketexappview.cpp
字号:
/*
============================================================================
Name : WikiSecureSocketExAppView.cpp
Author : Konstantine; Company: Fishnest Ukraine Sebastopol
Copyright : bluspan@gmail.com
Description : Application view implementation
============================================================================
*/
// INCLUDE FILES
#include <coemain.h>
#include "WikiSecureSocketExAppView.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CWikiSecureSocketExAppView::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CWikiSecureSocketExAppView* CWikiSecureSocketExAppView::NewL( const TRect& aRect )
{
CWikiSecureSocketExAppView* self = CWikiSecureSocketExAppView::NewLC( aRect );
CleanupStack::Pop( self );
return self;
}
// -----------------------------------------------------------------------------
// CWikiSecureSocketExAppView::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CWikiSecureSocketExAppView* CWikiSecureSocketExAppView::NewLC( const TRect& aRect )
{
CWikiSecureSocketExAppView* self = new ( ELeave ) CWikiSecureSocketExAppView;
CleanupStack::PushL( self );
self->ConstructL( aRect );
return self;
}
// -----------------------------------------------------------------------------
// CWikiSecureSocketExAppView::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CWikiSecureSocketExAppView::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();
}
// -----------------------------------------------------------------------------
// CWikiSecureSocketExAppView::CWikiSecureSocketExAppView()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CWikiSecureSocketExAppView::CWikiSecureSocketExAppView()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CWikiSecureSocketExAppView::~CWikiSecureSocketExAppView()
// Destructor.
// -----------------------------------------------------------------------------
//
CWikiSecureSocketExAppView::~CWikiSecureSocketExAppView()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CWikiSecureSocketExAppView::Draw()
// Draws the display.
// -----------------------------------------------------------------------------
//
void CWikiSecureSocketExAppView::Draw( const TRect& /*aRect*/ ) const
{
// Get the standard graphics context
CWindowGc& gc = SystemGc();
// Gets the control's extent
TRect drawRect( Rect());
// Clears the screen
gc.Clear( drawRect );
}
// -----------------------------------------------------------------------------
// CWikiSecureSocketExAppView::SizeChanged()
// Called by framework when the view size is changed.
// -----------------------------------------------------------------------------
//
void CWikiSecureSocketExAppView::SizeChanged()
{
DrawNow();
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -