⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ldcno17songappui.cpp

📁 Symbian 描述符常用函数使用实例
💻 CPP
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */

#include <avkon.hrh>
#include <aknnotewrappers.h> 

#include "Ldcno17song.pan"
#include "Ldcno17songAppUi.h"
#include "HelloView.h"
#include "WorldView.h"
#include "Ldcno17song.hrh"
#include "Ldcno17songApplication.h"	//for CEikApplication

void CLdcno17songAppUi::ConstructL()
    {
    BaseConstructL(EAknEnableSkin);

//    iAppView = CLdcno17songAppView::NewL(ClientRect());    
//    AddToStackL(iAppView);
	  m_pHelloView = CHelloView::NewL();
	  AddViewL(m_pHelloView);
	  
	  m_pWorldView = CWorldView::NewL();
	  AddViewL(m_pWorldView);
    }

CLdcno17songAppUi::CLdcno17songAppUi()                              
    {
    // add any construction that cannot leave here
    }

CLdcno17songAppUi::~CLdcno17songAppUi()
    {
 //   if (iAppView)
 //      {
 //       iEikonEnv->RemoveFromStack(iAppView);
 //       delete iAppView;
 //       iAppView = NULL;
 //       }
    }

void CLdcno17songAppUi::HandleCommandL(TInt aCommand)
    {
    switch(aCommand)
        {
        case EEikCmdExit:
        case EAknSoftkeyExit:
            Exit();
            break;

        case ELdcno17songCommand1:
            {
				ActivateLocalViewL(KViewId1); 
            }
            break;
		case ELdcno17songCommand2:
            {
				ActivateLocalViewL(KViewId2); 
            }
            break;

        default:
            Panic(ELdcno17songBasicUi);
            break;
        }
    }


void CLdcno17songAppUi::GetAppPath(TDes& aPath)		// 新增加!!
{
	TFileName appFullName;
	appFullName = Application()->AppFullName();
	TParsePtr parse(appFullName);
	aPath.Copy(parse.DriveAndPath());
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -