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外观。“皮肤”文件 在下面文件夹处:
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.