customctrldlgcustomcontroldialog.cpp
来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C++ 代码 · 共 57 行
CPP
57 行
/**
*
* @brief Definition of CCustomCtrlDlgCustomControlDialog
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
// Class include
#include "CustomCtrlDlgCustomControlDialog.h"
// System includes
#include <customctrldlg.rsg>
// User includes
#include "customctrldlg.hrh" // dialog lines
#include "customctrldlgCustomControl.h" // CCustomCtrlDlgCustomControl
// ================= MEMBER FUNCTIONS =======================
/**
* Static construction and execution of the dialog.
* @param aPlayerName the name which this dialog will edit
* @return ETrue if the dialog is dismissed with a positive action, EFalse otherwise
*/
TBool CCustomCtrlDlgCustomControlDialog::RunDlgLD ()
{
CCustomCtrlDlgCustomControlDialog* playerNameDialog = new (ELeave) CCustomCtrlDlgCustomControlDialog();
return playerNameDialog->ExecuteLD(R_CUSTOMCTRLDLG_CUSTOM_CONTROL_DIALOG);
}
/**
* Called by the framework when an uncrecognised type of control is found in a dialog line.
* @param aControlType the type of control found
*/
SEikControlInfo CCustomCtrlDlgCustomControlDialog::CreateCustomControlL(TInt aControlType)
{
SEikControlInfo controlInfo;
controlInfo.iControl = NULL;
controlInfo.iTrailerTextId = 0;
controlInfo.iFlags = 0;
switch (aControlType)
{
case ECustomCtrlDlgCtCustomControl:
controlInfo.iControl = new(ELeave) CCustomCtrlDlgCustomControl;
break;
default:
break;
}
return controlInfo;
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?