📄 linkedmessageboxappview.cpp
字号:
/*
============================================================================
Name : LinkedMessageboxView.cpp
Author :
Version :
Copyright : Your copyright notice
Description : Application view
============================================================================
*/
// INCLUDE FILES
#include <coemain.h>
#include "LinkedMessageboxAppView.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CLinkedMessageboxAppView::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CLinkedMessageboxAppView* CLinkedMessageboxAppView::NewL( const TRect& aRect )
{
CLinkedMessageboxAppView* self = CLinkedMessageboxAppView::NewLC( aRect );
CleanupStack::Pop( self );
return self;
}
// -----------------------------------------------------------------------------
// CLinkedMessageboxAppView::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CLinkedMessageboxAppView* CLinkedMessageboxAppView::NewLC( const TRect& aRect )
{
CLinkedMessageboxAppView* self = new ( ELeave ) CLinkedMessageboxAppView;
CleanupStack::PushL( self );
self->ConstructL( aRect );
return self;
}
// -----------------------------------------------------------------------------
// CLinkedMessageboxAppView::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CLinkedMessageboxAppView::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();
}
// -----------------------------------------------------------------------------
// CLinkedMessageboxAppView::CLinkedMessageboxAppView()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CLinkedMessageboxAppView::CLinkedMessageboxAppView()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CLinkedMessageboxAppView::~CLinkedMessageboxAppView()
// Destructor.
// -----------------------------------------------------------------------------
//
CLinkedMessageboxAppView::~CLinkedMessageboxAppView()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CLinkedMessageboxAppView::Draw()
// Draws the display.
// -----------------------------------------------------------------------------
//
void CLinkedMessageboxAppView::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 );
}
// -----------------------------------------------------------------------------
// CLinkedMessageboxAppView::SizeChanged()
// Called by framework when the view size is changed.
// -----------------------------------------------------------------------------
//
void CLinkedMessageboxAppView::SizeChanged()
{
DrawNow();
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -