customctrldlgdialog.cpp

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C++ 代码 · 共 48 行

CPP
48
字号
/**
* 
* @brief Definition of CCustomCtrlDlgDialog
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

// INCLUDE FILES

// Class include
#include "CustomCtrlDlgDialog.h"

// System includes
#include <aknappui.h>    // iAvkonAppUi
#include <avkon.hrh>    // EAknSoftkeyBack, EEikCmdExit

// User includes

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

/**
* Called by the framework when a button is pressed.
* Translates aButtonId into a command for the AppUi to handle
* @param aButtonId The button which was pressed
*/

TBool CCustomCtrlDlgDialog::OkToExitL(TInt aButtonId)
{
    // Translate the button presses into commands for the appui & current
    // view to handle
    if (aButtonId == EAknSoftkeyOptions)
    {
        iAvkonAppUi->ProcessCommandL(EAknSoftkeyOptions);
    }
    else if (aButtonId == EAknSoftkeyBack)
    {
        iAvkonAppUi->ProcessCommandL(EEikCmdExit);
    }
    
    // It's not ok to exit the dialog as this is the main window. Let the appui decide
    // what to do in exit conditions
    return EFalse;
}

// End of File

⌨️ 快捷键说明

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