helloworldbasicquerydialog.cpp
来自「使用carbide.c++开发的基于symbian 3rd的操作系统的短信删除软」· C++ 代码 · 共 52 行
CPP
52 行
/*
* ==============================================================================
* Name : helloworldbasicquerydialog.cpp
* Part of : helloworldbasicquery
* Interface :
* Description :
* Version :
*
* Copyright (c) 2006 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation.
* ==============================================================================
*/
// INCLUDE FILES
#include <avkon.hrh>
#include "HelloWorldBasicQueryDialog.h"
// ================= MEMBER FUNCTIONS =======================
// C++ default constructor can NOT contain any code, that
// might leave.
//
CHelloWorldQueryDialog::CHelloWorldQueryDialog( TDes& aBuf, HBufC *aDefInput )
: CAknTextQueryDialog( aBuf )
, iDefInput(*aDefInput)
{
}
// ---------------------------------------------------------
// CHelloWorldQueryDialog::PreLayoutDynInitL
// ---------------------------------------------------------
//
void CHelloWorldQueryDialog::PreLayoutDynInitL()
{
// first we have to execute PreLayoutDynInitL() of the base-class
CAknTextQueryDialog::PreLayoutDynInitL();
// acquire pointer to editor-control and set the default input.
CAknQueryControl* control = QueryControl();
control->SetTextL(iDefInput);
// enable OK-button, so that default text can be accepted as it is
// without modifying the text
MakeLeftSoftkeyVisible( ETrue );
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?