通过PB 定制 Windows CE .NET 用户界面

作者:太阳下的泪

转自:http://blog.sina.com.cn/s/blog_5be1061c0100azxl.html


Windows CE .NET 提供为你的嵌入式设计定制用户界面的能力。如 POS terminals, ATMmachines, or other 'fixed function' devices。也可以用Internet浏览器和应用程序.以前版本的WINCE也可以定制用户界面,但带有明显的WINDOWS外观和感觉。现在WINCE。NET改变了这个。

这里有一些选择,在为一个Windows CE .NET 设备定制界面时:

·                    使用 Microsoft Internet Explorer 作为设备的shell.这是一个非常弹性的选择。使用HTML(和DHTML)编制高度定制化的用户界面是快速的,简单的和弹性的。可以充分利用位图,动画,动态。

·                    创建一个独立的应用程序来取代标准shell。在概念上,这个和使用IE是类似的。是一个很好的选择在一个功能单一的设备上,如点销售终端(point-of-saleterminal)上。 It's possible to change the appearance of controlswithin an application by subclassing the control, which is achievedthroughGetWindowLong( ) and SetWindowLong( ) API's.(Feel free to check out any of the number of articles on MSDN thatdiscuss subclassing.)

·                    在操作系统里改变某些用户界面组件的外观。可以通过改变位图和代码来实现。

Microsoft在Windows CE .NET中提供了2种皮肤: Windows 95 外观和Windows XP 外观.这些分别为通用控件,windows控件,和非客户区提供windows外观。“皮肤”文件 在下面文件夹处:

\WINCE420\PUBLIC\COMMON\OAK\DRIVERS\SKINNABLEUI.

在skinnableui 文件夹下提供的代码可以改动(因为是在public树下),可以被你的设备所采用。

Take a look in the skinnableui folder. There are two sets ofuser interface components: GWE/COMMCTRL (Windows 95 appearance) andGWEXP/COMMCTRLXP (Windows XP).

Here's how we choose which of the 'skins' is applied to ourdevice:

1.                Build an operating system image using the default catalog options;this will give a Windows 95 appearance.

2.                从catalog里选择Windows XP skin。在 Core O/S/Display Based Devices/Shelland User Interface/User Interface/Customizable UI/Windows XP-likesample skin. 加这个组件到平台里,或者设置the SYSGEN_XPSKIN 环境变量.

How do these skins differ? Let's take a look at some of the UIdifferences. We can then take a look at how to further customizethe Windows CE .NET user interface.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值