⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mtmsexampledialog.cpp

📁 symbian s60 第3版下的短信发送程序,实现了(发送,接收等功能)
💻 CPP
字号:
/*
============================================================================
 Name        : MtmsExampleDialog.cpp
 Author      : Lion
 Copyright   : Your copyright notice
 Description : CMtmsExampleDialog implementation
============================================================================
*/

// Class include
#include "MtmsExampleDialog.h"

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

// ================= 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
*/
void CMtmsExampleDialog::Draw(const TRect& /*Rect*/) const
{
// Get the standard graphics context
    CWindowGc& gc = SystemGc();

    // Gets the control's extent
    TRect drawRect(Rect());
    
    // Clears the screen
    gc.Clear( drawRect );
    
	
}

void CMtmsExampleDialog::SizeChanged()
{
	DrawNow();
}
TBool CMtmsExampleDialog::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;
	}
// End of File

⌨️ 快捷键说明

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