从C ++代码,Windows Phone 8应用程序暂停 [英] Suspend from C++ code, Windows Phone 8 app
本文介绍了从C ++代码,Windows Phone 8应用程序暂停的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的DirectX Windows Phone 8应用程序本身处理后退按钮事件,并且必须返回false,因此该应用程序永远不会被暂停。
My DirectX Windows Phone 8 app handles the back button event itself, and must return false, hence the app will never be suspended on back.
但是,主要是屏幕我确实希望应用程序再次实际挂起。
但是我想通过调用一些Windows Phone API来实现这一点。
However, in the main screen I do want the app to actually suspend again.
But I want to accomplish this by calling some Windows Phone API.
任何人都可以告诉我如何手动从C ++代码触发挂起?
Can anyone tell me how to manually trigger a suspend from C++ code?
谢谢!
推荐答案
挂起是一个用户或操作系统操作所以从应用程序本身没有可用的代码。
Suspend is a user or OS action so there is no code available to do this from the app itself.
这篇关于从C ++代码,Windows Phone 8应用程序暂停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文