×
Namespaces

Variants
Actions

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

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台:
Symbian

文章
huwell 在 28 Jun 2007 创建
最后由 hamishwillee 在 08 May 2013 编辑
  • 设备, 软件 版本:

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)上测试通过

This page was last modified on 8 May 2013, at 03:01.
88 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×