Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 05:25, 28 June 2007.

在通话时捕捉到结束键(红色键)

From Forum Nokia Wiki

  • 设备, 软件 版本:

S60 3rd Edition,S60 3rd Edition, FP1


  • 详细描述:

我们可以使用下列代码在通话时捕捉到结束键。 注意SwEvent的执行要基于这里提到的Window Server是否成功调用。

#include <W32STD.H> // link against ws32.lib
 
#include <e32keys.h>
 
...
 
RWindowGroup& groupWin = CCoeEnv::Static()->RootWin();      
 
TInt endKey1 = groupWin.CaptureKeyUpAndDowns( EStdKeyNo, 0, 0 );
 
TInt endKey2 = groupWin.CaptureKey( EKeyNo, 0, 0 );
 
// -> End key can now be processed before the phone application of the device...
 
...
 
// Cancel the capture
 
groupWin.CancelCaptureKeyUpAndDowns( endKey1 );
 
groupWin.CancelCaptureKey( endKey2 );

上述代码已经在N73(SW: 2.0620.0.05)上测试通过

Related Discussions
Thread Thread Starter Forum Replies Last Post
Nokia论坛技术资料Symbian解决方案-中文版 hoolee Symbian 376 2008-07-04 08:25
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX