    #include <coemain.h>

    #include "MyAppAppView.h"

    // Standard construction sequence
    CMyAppAppView *CMyAppAppView::NewL(const TRect& aRect)
    {
        CMyAppAppView *self = CMyAppAppView::NewLC(aRect);
        CleanupStack::Pop(self);
        return self;
    }

    CMyAppAppView *CMyAppAppView::NewLC(const TRect& aRect)
    {
        CMyAppAppView *self = new(ELeave) CMyAppAppView;
        CleanupStack::PushL(self);
        self->ConstructL(aRect);
        return self;
    }

    CMyAppAppView::CMyAppAppView()
    {
    	// no implementation required
    }

    CMyAppAppView::~CMyAppAppView()
    {
    	// no implementation required
    }

    void CMyAppAppView::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();
    }

    // Draw this application's view to the screen
    void CMyAppAppView::Draw(const TRect& /*aRect*/) const
    {
        // Get the standard graphics context
        CWindowGc &gc = SystemGc();

        // Gets the control's extent
        TRect rect = Rect();

        // Clears the screen
        gc.Clear(rect);
    }