aknexsliderappui.cpp
来自「symbian 中 滚动条的使用 可以用在亮度」· C++ 代码 · 共 66 行
CPP
66 行
/* Copyright (c) 2004, Nokia. All rights reserved */
#include "AknExSliderAppUi.h"
#include "AknExSliderView.h"
#include <aknviewappui.h>
#include <avkon.hrh>
// ================= MEMBER FUNCTIONS =========================================
// ----------------------------------------------------------------------------
// CAknExSliderAppUi::CAknExSliderAppUi()
// Default constructor.
// ----------------------------------------------------------------------------
//
CAknExSliderAppUi::CAknExSliderAppUi()
{
}
// ----------------------------------------------------------------------------
// CAknExSliderAppUi::ConstructL()
// Constructor.
// Creates view class object.
// ----------------------------------------------------------------------------
//
void CAknExSliderAppUi::ConstructL()
{
BaseConstructL();
// Creates CAknExSliderView object.
CAknExSliderView* view = new( ELeave ) CAknExSliderView;
CleanupStack::PushL( view ); // Pushes view to clean-up stack.
AddViewL( view ); // Transfers ownership to CAknViewAppUi.
CleanupStack::Pop(); // Pops from clean-up stack. ( view )
ActivateLocalViewL( view->Id() ); // Activates the view.
}
// ----------------------------------------------------------------------------
// CAknExSliderAppUi::~CAknExSliderAppUi()
// Destructor.
// ----------------------------------------------------------------------------
//
CAknExSliderAppUi::~CAknExSliderAppUi()
{
}
// ----------------------------------------------------------------------------
// CAknExSliderAppUi::HandleCommandL()
// Handles the commands.
// ----------------------------------------------------------------------------
//
void CAknExSliderAppUi::HandleCommandL( TInt aCommand )
{
switch ( aCommand )
{
case EAknSoftkeyBack:
case EEikCmdExit:
Exit();
break;
default:
break;
}
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?