¡¾×ª¡¿°´¹Ò»ú¼üºó³ÌÐòÍ˵½ºǫ́ÔËÐУ¬°´c¼ü½áÊø³ÌÐò
http://blog.csdn.net/utopia2006/archive/2008/05/30/2495667.aspx
Ä¿µÄ£ºµ±³ÌÐòÔÚǰ̨ÔËÐÐʱ£¬°´¹Ò»ú¼ü³ÌÐò²»Í˳ö£¬Ö»ÊÇÍ˵½ºǫ́ÔËÐУ¬³ÌÐòÔÚºǫ́ÔËÐÐʱ£¬°´c¼üÄܰѳÌÐò½áÊø
·½·¨£ºÔÚHandleWsEventL()ÖÐÆÁ±Î¹Ò»ú¼üKAknUidValueEndKeyCloseEvent,ÔÚÖµÔÚavkon.hrhÖж¨Ò壬ʵ¼ùÖз¢ÏÖ8.0sdkµÄavkon.hrhûÓж¨ÒåKAknUidValueEndKeyCloseEvent£¬Î¨ÓÐÊÖ¹¤Ìí¼Ó¶¨Òå#define KAknUidValueEndKeyCloseEvent 0x101F87F0
²âÊÔ£ºÔÚ3230£¬N70ºÍE61iÉϲâÊÔͨ¹ý
void CMyClientAppUi::HandleWsEventL(const TWsEvent &aEvent, CCoeControl *aDestination)
{
switch (aEvent.Type())
{
case KAknUidValueEndKeyCloseEvent:
break;
default:
CAknAppUi::HandleWsEventL(aEvent, aDestination);
}
}
// ----------------------------------------------------
// CPocoClientAppUi::HandleCommandL(TInt aCommand)
// takes care of command handling
// ----------------------------------------------------
//
void CMyClientAppUi::HandleCommandL(TInt aCommand)
{
switch ( aCommand )
{
case EEikCmdExit:
{
Exit();
break;
}
// TODO: Add Your command handling code here
default:
break;
}
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------
ÐèÒªµ¯³ö¿òµÄ»°£¬¿É²Î¿¼£ºhttp://discussion.forum.nokia.com/forum/showthread.php?t=191426
5Â¥£º“·ÇÒª×öµÄ»°¡£¡£¡£ÓÃÒ»¸öglobalnote£¬µ±Óû§°´Ï“·ñ”µÄʱºò£¬ÔÙ°Ñ×Ô¼ºÇе½Ç°Ì¨¡£”
6Â¥£º
void CBTAlarmAppUi::HandleWsEventL(const TWsEvent &aEvent,
CCoeControl *aDestination)
{
if (KAknUidValueEndKeyCloseEvent == aEvent.Type())//Ϊ¹Ò»ú¼üʱ
{
TInt flag;
flag = ShowGlobalConfirmDialogL(_L("are you sure close application?"));
//close the application
i
Ïà¹ØÎĵµ£º
ÌâÄ¿ÈçÏ£º
ÒªÇóÏÔʾ³öµ¥ÔµÄÈÕÀú£¬Óû§ËµÃ÷Õâ¸öÔµÄÌìÊýºÍ±¾ÔµÄÆðʼÈÕÊÇÐÇÆÚ¼¸£¬¼´¿ÉÊä³ö¸ÃÔµÄÈÕÀú¡£
¾ÍÊÇÕâôһµÀ¼òµ¥µÄ³ÌÐò£¬ÎÒ±ïÁËÁ½Ìì×ÜËãŪ³öÀ´ÁË£¬½á¹ûËäÈ»´ïµ½ÁËÒªÇ󣬵«¾àÀëÎÒÔ¤ÏëµÄ»¹ÓÐÒ»¶Î²î¾à£¬ÏȰѳÌÐò
´úÂë·ÅÔÚÉÏÃ棬ϣÍû´ó¼Ò¶àÌáÐÞ¸ÄÒâ¼û¡£
/******************************************************* ......
»Ø¹Ë֮ǰµÄƪ·ù£¬CÓïÑÔµÄÖ÷Ì岿·Ö»ù±¾ÒѾ½éÉÜÍêÁË¡£Ö®ËùÒÔûÓнéÉÜC++µÄÏà¹ØÌØÐÔÊÇÒòΪÔÚ֮ǰµÄÎÄÕÂÖÐCºÍC++ÔÚÕâЩ·½Ã涼Óй²ÐÔ£¬ËùÒÔÔÚÃæÏò¶ÔÏó֮ǰ¡£ÎÒÃÇÏÈ°ÑÕâЩ¹²ÐÔ¸ø½éÉÜÍê¡£Ò²¾ÍÊÇ˵ÔÚ½éÉÜÃæÏò¶ÔÏó֮ǰ£¬ËùÓеÄÎÄÕ¶¼ÊÇCC++Öж¼ÄÜʹÓõġ£´ÓÕâµãÉÏÀ´¿´£¬ÏÖÔÚÕý¼«Á¦·Ü¶·ÓÚC++Õ½ÏßÉϵijõѧÕß»¹ÊǺÜÓÐÓô¦µÄ¡£
±¾Æª¼ÌÐ ......
¹ØÓÚcµÄ¶¯Ì¬ÄÚ´æ¹ÜÀíÒ»Ö±ÊǸö¾¾Ã²»Ë¥µÄ»°Ìâ,ÃæÊÔÒ²ÊÇ»ù±¾É϶¼»á¿¼µÄ,±¾À´¸Ð¾õÒѾÃ÷°×ÁË,µ«ÊǽñÌìʹÓõÄʱºòÒ»²»Ð¡Ðĵ¼Ö³ÌÐò±ÀÀ£ÁË,Òò´ËÉîÈëµÄÈ¥²éÁËÏÂ×ÊÁÏ,ÊÕ»ñ²»ÉÙ...Ìù³öÀ´Óë´ó¼Ò·ÖÏí...
ÏÈÌù¸ö´íÎó´úÂë:
int * ptr = (int *)mal ......
1.ÒýÑÔ
¡¡¡¡C++ÓïÑԵĴ´½¨³õÖÔÊÇ“a better C”£¬µ«ÊÇÕâ²¢²»Òâζ×ÅC++ÖÐÀàËÆCÓïÑÔµÄÈ«¾Ö±äÁ¿ºÍº¯ÊýËù²ÉÓõıàÒëºÍÁ¬½Ó·½Ê½ÓëCÓïÑÔÍêÈ«Ïàͬ¡£×÷ΪһÖÖÓûÓëC¼æÈݵÄÓïÑÔ£¬C++±£ÁôÁËÒ»²¿·Ö¹ý³ÌʽÓïÑÔµÄÌص㣨±»ÊÀÈ˳ÆΪ“²»³¹µ×µØÃæÏò¶ÔÏ󔣩£¬Òò¶øËü¿ÉÒÔ¶¨Òå²»ÊôÓÚÈκÎÀàµÄÈ«¾Ö±äÁ¿ºÍº¯Êý¡£µ«ÊÇ£¬C++±Ï ......