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