如何创建在Win CE 6.0中使用.NET Compact Framework的3.5全屏应用程序? [英] How to create a full screen application in Win CE 6.0 using .NET Compact Framework 3.5?

查看:207
本文介绍了如何创建在Win CE 6.0中使用.NET Compact Framework的3.5全屏应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望我们的应用程序以全屏幕模式与基于Win CE 6.0用电设备上没有标题栏运行。该应用程序正在使用.NET Compact Framework的3.5(C#)开发。任何示例代码或指针文章表示赞赏。

We want our application to run in full screen mode with no title bar on a Win CE 6.0 powered device. The application is being developed using .NET Compact Framework 3.5 (C#). Any sample code or pointers to articles is appreciated.

推荐答案

首先,你要隐藏通过P / Invoke的任务栏。这里的C代码,这应该是很容易转换

First, you have to hide the task bar via P/Invoke. Here's the C code, which should be really easy to convert:

HWND hwndTaskbar = ::FindWindow(_T("HHTaskBar"), NULL); 
::ShowWindow(hwndTaskbar, SW_HIDE);



一旦你这样做,然后用Screen.PrimaryScreen以确定您的显示器有多大,并调整您的形式这些尺寸。

Once you do that, then use Screen.PrimaryScreen to determine how big your display is and resize your form to those dimensions.

这篇关于如何创建在Win CE 6.0中使用.NET Compact Framework的3.5全屏应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆