aknexquerybaselisteventhandler.cpp

来自「symbian ui的 例子 初学者可以 好好看看,这个是培训的资料,应该比较宝」· C++ 代码 · 共 60 行

CPP
60
字号
/*
* ==============================================================================
*  Name        : aknexquerybaselisteventhandler.cpp
*  Part of     : Query example
*  Interface   :
*  Description :
*  Version     :
*
*  Copyright (c) 2004 - 2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/

// INCLUDE FILES
#include <eikclb.h>   // For listbox
#include "AknExQueryBaseListEventHandler.h"

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

// ----------------------------------------------------------------------------
// CAknExQueryBaseListEventHandler::CAknExQueryBaseListEventHandler()
// Default constructor.
// ----------------------------------------------------------------------------
//
CAknExQueryBaseListEventHandler::CAknExQueryBaseListEventHandler( 
                                            CAknExQueryContainer* aContainer )
: iContainer( aContainer )
    {
    }

// ----------------------------------------------------------------------------
// CAknExQueryBaseListEventHandler::~CAknExQueryBaseListEventHandler()
// Destructor.
// ----------------------------------------------------------------------------
//
CAknExQueryBaseListEventHandler::~CAknExQueryBaseListEventHandler()
    {
    }

// ----------------------------------------------------------------------------
// CAknExQueryBaseListEventHandler::HandleListBoxEventL( 
//     CEikListBox* TListBoxEvent,
//     TListBoxEvent aEventType )
// ----------------------------------------------------------------------------
//
void CAknExQueryBaseListEventHandler::HandleListBoxEventL( 
    CEikListBox* aListBox,
    TListBoxEvent aEventType )
    {
    if ( ( aEventType == MEikListBoxObserver::EEventEnterKeyPressed ) ||
         ( aEventType == MEikListBoxObserver::EEventItemClicked ) )
        {
        HandleSelectedListItemL( aListBox->CurrentItemIndex() );
        }
    }

// End of File

⌨️ 快捷键说明

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