helloworldddialog.cpp

来自「《基于symbian手机开发与应用》一书的源代码」· C++ 代码 · 共 61 行

CPP
61
字号
/*
* ============================================================================
*  Name     : CHelloWorldDDialog from HelloWorldDDialog.h
*  Part of  : HelloWorldD
*  Created  : 2006-3-13 by 
*  Implementation notes:
*     Initial content was generated by Series 60 AppWizard.
*  Version  :
*  Copyright: 
* ============================================================================
*/

// INCLUDE FILES
#include    "HelloWorldDDialog.h"

#include <eiklabel.h>  // for example label control
#include <avkon.hrh>
#include <aknappui.h>

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


// Destructor
CHelloWorldDDialog::~CHelloWorldDDialog()
    {
    }

// ---------------------------------------------------------
// CHelloWorldDDialog::OkToExitL(TInt aButtonId)
// called by framework when the softkey is pressed
// ---------------------------------------------------------
//
TBool CHelloWorldDDialog::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 );
        }
    
    return EFalse;
}

// ---------------------------------------------------------
// CHelloWorldDDialog::PreLayoutDynInitL();
// called by framework before dialog is shown 
// ---------------------------------------------------------
//
void CHelloWorldDDialog::PreLayoutDynInitL()
    {
    }


// End of File

⌨️ 快捷键说明

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