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

📄 aknexsliderappui.cpp

📁 symbian 中 滚动条的使用 可以用在亮度
💻 CPP
字号:
/*  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -