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

📄 statuspaneappui.cpp

📁 状态栏示例
💻 CPP
字号:
/**
* 
* @brief Definition of CStatusPaneAppUi
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

// INCLUDE FILES

//  Class include
#include "StatusPaneAppUi.h"

// System includes
#include <avkon.rsg>
#include <StatusPane.rsg>

// User includes
#include "StatusPane.hrh" // TStatusPaneViewNumber
#include "StatusPaneView1.h" // CStatusPaneView1

// ================= MEMBER FUNCTIONS =======================

/**
* Symbian OS 2nd phase constructor.  Constructs the application's views, 
* transferring ownership of them to the superclass.
* Sets view 1 as the default and remembers that this is the current view id.  
*/	
void CStatusPaneAppUi::ConstructL()
	{
	BaseConstructL();

	iView1 = CStatusPaneView1::NewL();
	AddViewL(iView1); // transfer ownership
	}

/**
* From CEikAppUi, takes care of command handling for application views.
*
* @param aCommand command to be handled
*/
void CStatusPaneAppUi::HandleCommandL(TInt aCommand)
	{
	switch (aCommand)
		{
		case EStatusPaneToggleVisibility:
			{
			CEikStatusPane* statusPane = StatusPane();

			if (statusPane->CurrentLayoutResId() != R_AVKON_STATUS_PANE_LAYOUT_EMPTY)
				{
				statusPane->SwitchLayoutL (R_AVKON_STATUS_PANE_LAYOUT_EMPTY);	
				}
			else
				{
				statusPane->SwitchLayoutL (R_AVKON_STATUS_PANE_LAYOUT_USUAL);
				}
			break;
			}
		case EEikCmdExit:
			{
			Exit();
			break;
			}
		default:
			break;		
		}
	}

// End of File

⌨️ 快捷键说明

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