作者:死性Oo不改2502917357 | 来源:互联网 | 2023-08-10 12:27
IamdevelopinganapplicationforPocketPC.WhentheapplicationstartsthecustomfunctionSetScre
I am developing an application for PocketPC. When the application starts the custom function SetScreenOrientation(270) is called which rotates the screen. When the application closes the function SetScreenOrientation(0) is called which restores the screen orientation.
我正在为PocketPC开发一个应用程序。当应用程序启动时,调用自定义函数SetScreenOrientation(270)来旋转屏幕。当应用程序关闭时,将调用SetScreenOrientation(0)函数来恢复屏幕方向。
This way the screen orientation isn't restored if the user minimizes the application and this is not acceptable.
这样,如果用户最小化应用程序,则不会恢复屏幕方向,这是不可接受的。
Does anyone know where (in which event handlers) should SetScreenOrientation(int angle) be called to set the screen orientation on application start, restore orientation on minimize, set the orientation on maximize and restore the orientation on close?
有没有人知道在哪里(在哪个事件处理程序中)应该调用SetScreenOrientation(int角度)来设置应用程序启动时的屏幕方向,最小化时恢复方向,设置最大化方向并在关闭时恢复方向?
Actually I don't know which event handler handles the Minimize and Maximize event.
实际上我不知道哪个事件处理程序处理Minimize和Maximize事件。
4 个解决方案