wince UI 定制

WinCE嵌入式UI开发:XML布局与类库源码DEMO Windows CE(Compact Edition)是一个轻量级的操作系统,广泛应用于嵌入式设备中。用户界面(UI)开发在嵌入式系统中扮演着至关重要的角色,它不仅影响着用户对设备的直观感受,还直接关联到系统的易用性和性能。本章将探讨Windows CE环境下用户界面开发的基础知识和实践。在Windows CE用户界面开发中,XML布局是定义用户界面元素的一种常用方法,它允许开发者以声明的方式组织和安排用户界面控件。布局文件通常以.xml为扩展名,通过层次化结构来描述控件的布局和属性。 阅读详情

WinCE 的UI是skinnable。

Recently, while preparing for a talk at an Embedded event, a bullet point in my presentation seemed to beg for elaboration: the skinnable UI for Microsoft® Windows® CE .NET. I had talked to this point at a number of conferences, but had spent little time playing with the code to produce a customized UI. Since I had a few moments in the speaker lounge (and also an article to write), it seemed a good time to take a look at how the UI can be customized for Windows CE. On my wish list: customized screen colors, Windows controls that don't look like they belong to Windows, an OK/Close button in the non-client area that looks like a smiley face, a replacement shell (perhaps based on Microsoft® Internet Explorer 5.5 browser), and a shiny bike with basket and bell for Christmas...

Okay, so on with the article; let's see what's lurking beneath the hood of the Windows CE UI.

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

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

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

·创建一个独立的应用程序来取代标准shell。在概念上,这个和使用IE是类似的。是一个很好的选择在一个功能单一的设备上,如点销售终端(point-of-sale terminal)上。 It's possible to change the appearance of controls within an application by subclassing the control, which is achieved through GetWindowLong( ) and SetWindowLong( ) API's. (Feel free to check out any of the number of articles on MSDN that discuss 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 of user interface components: GWE/COMMCTRL (Windows 95 appearance) and GWEXP/COMMCTRLXP (Windows XP).

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

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/Shell and User Interface/User Interface/Customizable UI/Windows XP-like sample skin. 加这个组件到平台里,或者设置the SYSGEN_XPSKIN 环境变量.

How do these skins differ? Let's take a look at some of the UI differences. We can then take a look at how to further customize the Windows CE .NET user interface.


Figure 1. Windows 95 外观,使用标准皮肤。


Figure 2. Windows XP 外观, 使用XP-风格皮肤。

Let's now examine how we modify the Windows CE .NET user interface. This includes:

·Changing the user interface colors.

·Modifying user interface bitmaps.

·Modifying Windows CE .NET controls appearance.

·Modifying standard UI dialogs (for instance, Startupwhich can be used to show device configuration or password screen, Out of Memory, and Touch Screen Calibration).

·Using Internet Explorer as the shell of our device.

Changing the User Interface Colors

One of the quickest and simplest ways to modify the appearance of a device is to modify some or all of the user interface colors. This is achieved through the registry. Note that the default system colors are not visible in the devices registry. To set colors to something other than the default system colors, we need to override the color map in the registry. The easiest way to do this is to build an operating system image using Platform Builder, download the image to either the emulation environment or to a reference board, use the control panel to modify the color scheme to match the colors you require for your device, and then use the remote registry editor to take a snapshot of the updated colors from the registry—after all, who wants to spend time guessing RGB values? The color map can be found in the following registry location: HKEY_LOCAL_MACHINE/SYSTEM/GWE/SysColor.

If we were to modify the system color map on a device (or emulator) and use Remote Registry Editor to extract a .REG file, here's how the extracted .REG file might look. Once we've extracted the registry information we can then add this to our Project.REG file and rebuild our platform to take advantage of the new color scheme.

[HKEY_LOCAL_MACHINE/SYSTEM/GWE]
    "SysColor"=hex:E0,E0,E0,00, 00,80,80,00, 80,80,FF,00, 80,80,80,00,
                   C0,C0,C0,00, FF,FF,FF,00, 00,00,00,00, 00,00,00,00,
                   00,00,00,00, FF,FF,00,00, C0,C0,C0,00, C0,C0,C0,00,
                   80,80,80,00, 00,00,FF,00, 00,00,FF,00, C0,C0,C0,00,
                   80,80,80,00, 80,80,80,00, 00,00,00,00, C0,C0,C0,00,
                   FF,FF,FF,00, 00,00,00,00, DF,DF,DF,00, 00,00,00,00,
                   FF,FF,E1,00

The .REG file contents directly map to the following colors on the device (note that each color is represented by 4 hex digits).

COLOR_SCROLLBAR
COLOR_BACKGROUND
COLOR_ACTIVECAPTION
COLOR_INACTIVECAPTION
COLOR_MENU
COLOR_WINDOW
COLOR_WINDOWFRAME
COLOR_MENUTEXT
COLOR_WINDOWTEXT
COLOR_CAPTIONTEXT
COLOR_ACTIVEBORDER
COLOR_INACTIVEBORDER
COLOR_APPWORKSPACE
COLOR_HIGHLIGHT
COLOR_HIGHLIGHTTEXT
COLOR_BTNFACE
COLOR_BTNSHADOW
COLOR_GRAYTEXT
COLOR_BTNTEXT
COLOR_INACTIVECAPTIONTEXT
COLOR_BTNHIGHLIGHT
COLOR_3DDKSHADOW
COLOR_3DLIGHT
COLOR_INFOTEXT
COLOR_INFOBK
COLOR_STATIC
COLOR_STATICTEXT

Note that COLOR_BTNFACE is used throughout the Windows XP-like user interface as the color for caption bars and the like.

Modifying User Interface Bitmaps

Another way to get a UI facelift is to alter some of the standard UI bitmaps.The bitmaps contain the toolbar button images used in standard Windows CE .NET applications, such as Microsoft® Windows Explorer. The toolbar bitmaps can be found in the following folder: /WINCE400/public/common/OAK/FILES.

·Stdsm.bmp: Windows 95-like toolbar bitmaps.
 

·Stdsmxp.bmp: Windows XP-like toolbar bitmaps.
 

·Viewsm.bmp: Windows 95 'file' toolbar bitmaps.
 

·Viewsmxp.bmp: Windows XP 'file' toolbar bitmaps.
 

So how about the 'Close' button on an applications caption bar? Can we also modify how this looks? Yes, absolutely. Let's look at how to change the Windows XP look.

This isn't as simple as it first seems. There are two parts to the Close button. The first is the background bitmap, which can be found in C:/wince400/public/common/OAK/DRIVERS/SKINNABLEUI/GWEXP/GCACHEVIEWXP/RES—the file is Closebutton.bmp. This contains the button background in up, down, selected, and disabled form. So how does the white "X" get added to the button?

Right, lets roll up them sleeves and dig into some of the skinnableui source code… Perhaps the first stop on the tour of the code is the initialization function for the XP skin code. The code is wrapped into a class called CacheView_t. The initialization function is called Init( ). The CacheView_t::Init( ) function is located in SKINNABLEUI/GWEXP/GCACHEVIEWXP/gcacheviewxp.cpp. Let's take a look at some of the code. This is where the GDI object cache is setup.

// close button
HBITMAP hbmCloseButton = NULL;
hbmCloseButton = LoadBitmapW_I (hInstance, /
MAKEINTRESOURCE(GWES_CLOSEBUTTON));
ASSERT (hbmCloseButton);
g_cacheview.hdcCloseButton = Gdi::CreateCompatibleDC_I(NULL);
ASSERT(g_cacheview.hdcCloseButton);
Gdi::SelectObject_I(g_cacheview.hdcCloseButton, /
(HGDIOBJ)hbmCloseButton);

Here's what's happening: We're loading a bitmap resource "GWES_CLOSEBUTTON" and selecting this into a cached device context g_cacheview.hdcCloseButton, so that this is ready to use later. GWES_CLOSEBUTTON is defined in gcacheviewxp.res as follows:

GWES_CLOSEBUTTON BITMAP res//CloseButton.bmp

The bitmap is getting loaded from SKINABLEUI/GWEXP/GCACHEVIEWXP/RES.

So, we've loaded the background bitmap. We now need to figure out where g_cacheview.hdcCloseButton is getting used. Since the caption bar is part of the non-client area, it's a safe bet that we will find the code we're looking for in the following folder: SKINNABLEUI/GWEXP/NCLIENTVIEWXP. Let's take a look at nclientviewxp.cpp.

Below is part of the DrawClose( ) function. We can clearly see the call to DrawCaptionButton( ) passing in the cached hdcCloseButton. (I've skipped some lines that aren't interesting for this part of the article.) We can then see the calls to SelectObject_I(hdc, hNewBrush), which selects a white brush into the device context. We then call DrawDiagonalLine( ) twice to place the cross onto the close button. This can, of course, be easily replaced with whatever background bitmap and foreground text/figure you want.

DrawCaptionButton(hdc, lprc, wControlState, g_cacheview.hdcCloseButton);
// … skip some lines…
hOldBrush = (HBRUSH)Gdi::SelectObject_I(hdc, hNewBrush);
DrawDiagonalLine(hdc, lprc, 1, 2, 0);
DrawDiagonalLine(hdc, lprc, -1, 2, 0);

Modifying the Appearance of Windows CE .NET Controls

Ok, so we've looked at changing colors and replacing some of the standard bitmaps. These are quick and effective ways of changing the appearance of a device. Now comes the interesting bit: altering the drawing code for some of the standard windows and controls. Here's a list of the items within Windows CE .NET that support skinning:

Window Controls

· Scroll bar

· Button—radio, check, push

· Combo box (edit and list)

· List box

· Static controls

· Group box

Non-Client Area

· Caption bar/window border

Common Controls

· Command band/command bar

· Header control

· Trackbar (slider)

· Progress bar

Skinning of the above items requires modification to source code (and in some cases, modifying bitmaps).

We have two options for creating a new skin for Windows CE .NET. The first option is to make a copy of the contents of either C:/wince400/public/common/OAK/DRIVERS/SKINNABLEUI (GWE & COMMCTRL) or (GWEXP & COMMCTRLXP), and create a new skin project folder, perhaps called MYGWE and MYCOMMCTRL. We will also need to modify the DIRS file in C:/wince400/public/common/OAK/DRIVERS/SKINNABLEUI to include my new project files into the build. Then we need to replace the standard operating system build components with my new components. This is achieved through setting the SYSGEN_REPLACESKIN=1 environment variable (using Platform/Settings/Environment).

Lets examine the use of these environment variables. Here's a section of cesysgen.bat (part of the build system). We can see the first line checks for SYSGEN_REPLACESKIN. If this is set, then we skip including the standard Windows 95 and Windows XP UI components. If this is not set, then we look for SYSGEN_XPSKIN being set, and if it is, then we include the Windows XP skin components. If SYSGEN_XPSKIN is not set, then we include the Windows 95 skin components. Simple.

REM //XP or 9X UI
if "%SYSGEN_REPLACESKIN%"=="1" goto ReplaceSkin
if "%SYSGEN_XPSKIN%"=="1" 
set GWE4_COMPONENTS=%GWE4_COMPONENTS% 
sbcmnviewxp nclientviewxp gcacheviewxp btnctlviewxp 
stcctlviewxp cmbctlviewxp lbctlviewxp
if not "%SYSGEN_XPSKIN%"=="1" 
set GWE4_COMPONENTS=%GWE4_COMPONENTS% 
sbcmnview nclientview gcacheview btnctlview 
stcctlview cmbctlview lbctlview
:ReplaceSkin

To replace the default component with the component you customize, you must modify your cesysgen.bat file, and add a line similar to the following, which lists the skinning replacement libraries:

set GWE4_COMPONENTS=%GWE4_COMPONENTS% 
sbcmnview nclientview gcacheview btnctlview 
stcctlview cmbctlview lbctlview

The cesysgen.bat file can be found in the following folder: /WINCE400/public/%PROJECT_NAME%/WINCE400/%TARGETNAME%/oak/MISC. For an emulator project I'm working on, the cesysgen.bat file would be found here: /WINCE400/public/UIDemo/WINCE400/Emulator/oak/MISC.

We now understand how to remove the existing UI skin libraries (SYSGEN_REPLACESKIN) and how to add our own libraries to the build (cesysgen.bat). Let's now take a look at some of the Windows XP skin source code.

In this example, we could easily replace the 'button' focus rectangle drawing code with a solid rectangle. The Windows XP 'button' drawing code can be found in the following folder: /WINCE400/public/common/OAK/DRIVERS/SKINNABLEUI/GWEXP/BTNCTLVIEWXP. The file we're interested in is buttonviewxp.cpp. Search for DrawFocusRect_I. This is in the ButtonView_t::DrawText( ) function. We could replace the DrawFocusRect_I function call with a call to Gdi::Rectangle_I( ) to get a solid 'focus' rectangle. I'm sure you can think of many other ways to change the appearance of some of the Windows CE .NET user interface controls.

And then we're back to bitmaps—for example, changing the look of a scrollbar is as simple as using the Windows Paint program. The following folder contains the Scrollbar bitmaps: /WINCE400/public/common/oak/drivers/skinnableui/gwexp/gcacheviewxp/res/. Take a look at ScrollThumb.bmp and ScrollShaft.bmp; these are the bitmaps for vertical and horizontal 'thumbs,' and the horizontal and vertical 'shaft.' Simply edit the bitmaps, rebuild the operating system, and you have a whole new look.

Modifying Standard UI Dialogs (Startup, Out of Memory, Touch Screen Calibration)

Windows CE .NET contains a number of standard user interface components that can be OEM customized. These include the Startup UI, the Out-of-Memory UI, and the Touch-Screen-Calibration UI.

We may have specific setup/configuration options for our device that can be handled through the Startup UI (this is typically used to prompt for a password, and display user information). The Out-of-Memory UI component can be modified to prompt a user in a specific manner, or to work with headless devices, perhaps creating a log file or sending a message across the network to alert a system administrator. (Having a UI component isn't much use on headless devices!) Touch Screen Calibration is self-explanatory.

So how do we replace/modify these components?

This requires some modification of cesysgen.bat (see Modifying the Appearance of Windows CE .NET Controls above for the location of this file), and the setting of environment variables. Here's how:

First we need to remove the ComponentName (oomui, startui, calibrui) from cesysgen.bat for each component being replaced. Below is an extract from cesysgen.bat. We can see the oomui component highlighted; remove this from cesysgen (unless you are modifying the existing code).

set GWE4_COMPONENTS=%GWE4_COMPONENTS% startup oomui oom startui cmbctl cdlctl edctl imgctl lbctl scbctl

Use GWES_REPLACE to replace components with .res files, and GWES_REPLACECOMPONENT to replace a component without a .res file.

We then need to set the environment variable GWES_REPLACE with the name of the module we are inserting into the build process to replace (in this case) oomui. The GWES_REPLACE environment variable can be set using Platform/Settings/Environment in the Platform Builder IDE.

We could, for example set GWES_REPLACE=myoomui—I know you are asking how the build system knows where to get this file. That's simple. The build system will pick up the .lib file from the following folder: C:/WINCE400/public/common/OAK/LIB/%PROCESSOR/DEBUG/RETAIL.

That's all there is to it. In this month's column, we've taken a look at how to change the user interface colors using the registry, modify user interface bitmaps for common dialogs, and modify Windows CE .NET controls appearance. I'm sure the creative side of you is just itching to get started with building customized Windows CE user interface components. We'd certainly be interested in seeing any samples you produce. As always, let us know if you'd be interested in getting more information in this area, or have suggestions for additional articles.

But wait, there's more… Next month we will take a look at how to replace the standard shell and create a flexible user interface using the Internet Explorer 5.5 browser. This is an interesting shell solution, since we can quickly build a device user interface using HTML, DHTML, and Microsoft ActiveX® Controls.

MSDN原文参考LINK:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnembedded/html/embedded04022002.asp    

 
ce 界面控件类,主要有 skin button等界面控件。 ce 界面控件类 主要用于wince界面便成,主要有 skin button等界面控件。 立即下载

相关推荐

wince环境实现多彩绚丽按钮用于UI设计

wince环境实现多彩绚丽按钮用于UI设计,很多种类,可以供新手和UI设计们参考参考哦。

(转)定制 Windows CE .NET 用户界面 1

MSDN原文参考LINK:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnembedded/html/embedded04022002.asp     定制 Windows CE .NET 用户界面Mike HallMicrosoft CorporationSteve MailletEntelec

1156

wince平台下模拟器,winceui图形界面库

wince平台下模拟器,winceui图形界面库wince平台下模拟器,winceui图形界面库wince平台下模拟器,winceui图形界面库wince平台下模拟器,winceui图形界面库

wince5 实现XP风格皮肤

突然发现CE5可以实现XP风格皮肤。相当漂亮 具体实现如下: 在Core Os|Windows CE devices|Shell and User Interface|User Interface|User Interface|Customizeable UI下的Windows XP-Like Sample Skin加上就好了 转载于:https://www.cnblogs.com/sanky...

weixin_30852451的博客 193

WINCE6 自定义优美皮肤的TCPMP播放器

wince6 支持多格式的、优美界面的TCPMP播放器,支持带参数,文件名位于当前程序目录下的TCPMP.PLS,程序包含一个WINCE透明控件AlphaWinceControls.dll

强化学习代码实现PPO

梯度更新:通过截断(clipping)限制策略更新幅度,避免策略变化过大影响稳定性。首先是数据预处理,将相关数据(状态、采取的动作、状态奖励、下一个状态)放到gpu上。根据当前状态 state,利用策略网络生成每个动作的概率分布 probs。2. 修改了策略模型的输出,从每个动作的概率分布变成了动作的均值和方差。1. 修改了动作空间,离散空间变成了连续空间,使用正太分布来采样。3. 修改了动作的ratio的计算,从离散分布变成了正太分布计算。Update函数:通过经验缓冲数据来优化策略模型和价值模型。

wlxsp的博客 641

【引】改CE XP皮肤的系统界面颜色

如果选择了XP SKIN,则在控制面板的"显示"选项中是无法更改一些窗口的颜色的.不过,我们倒是可以通过更改$(_WINCEROOT)/PUBLIC/COMMON/OAK/FILES/common.reg文件中的XP颜色参数来达到更改窗口颜色的目的. 原XP样式的颜色参数如下: [HKEY_LOCAL_MACHINE/SYSTEM/GWE] "SysColor"=hex:/ ...

weixin_30387799的博客 201

更换光猫的原理与方法

当你给装维打电话说你需要更换光猫时,对于装维来说,他并不需要知道怎么更换,他只需要生成一张工单,由后台进行业务操作后,在去用户家把新光猫给装好即可,此时装维到底起到了什么作用呢?我想可能只是运输员吧,把一个设备从一个地方运到另一个地方罢了,此时并不能指望装维做什么,因为本质上来说装维的能力真的很差很差,我是不知道那些装维哪来的勇气做视频,还说自己什么什么能力很强?很强吗?吹牛的技术确实很强。 更换光猫之前,需要先明白为什么要更换光猫,怎么更换光猫,更换后不能用怎么办?怎么才能更换成功,换光猫以后被限速了怎么

qq_34146290的博客 1万+

剪映200套模板高效使用指南:从资产盘点到原创风格

在视频编辑领域,模板套用是提升效率的常见手段,但其核心原理在于通过预设工程文件快速构建时间线。技术价值在于降低制作门槛,应用场景涵盖短视频、教程和产品展示。然而,模板使用中常遇到横竖屏比例不匹配、版本兼容性报错、字体缺失等问题,影响成品质量。合理管理模板库,如按场景、风格、节奏分类,并掌握素材替换顺序和拆解技巧,能有效消除塑料感,实现从模板到原创的过渡。本文以剪映200套模板为例,分享资产盘点、兼容性排查和重组模板的实操经验,帮助创作者提升视频制作效率。

weixin_33805992的博客 380

将Matlab程序打包成.exe独立可执行程序

将Matlab程序打包成.exe独立可执行程序,在未安装Matlab的电脑上也能运行Matlab程序。

简简单单的学习笔记,致力于帮助更多前进路上的朋友~ 5万+

【软件系统架构】系列六:MBSE(基于模型的系统工程)

基于模型的系统工程(MBSE)是一种以模型为核心的系统工程方法论,通过结构化、可视化的模型取代传统文档,实现从需求到验证的全生命周期管理。MBSE采用SysML建模语言,包含需求、功能、架构和验证四大要素,支持自动追踪、仿真分析和代码生成。相比文档式工程,MBSE具有变更影响自动分析、跨团队协作和高可视化等优势,广泛应用于航空航天、汽车电子等领域。典型开发流程包括需求建模、行为建模、架构建模等阶段,配合MagicDraw、Cameo等工具链实现。MBSE正与数字孪生、AI技术融合,推动自动化建模和智能验证的

moton2017的博客 2793

WinCE 触摸屏校准界面克隆与定制

转自:http://hi.baidu.com/ch%5Fff/blog/item/ac84ee454259b944500ffe07.html  WINCE触摸屏校准界面的克隆与定制:本文转载自http://www.bloger.com.cn/user7/jony2008/373087.html问题描述:怎样在定制系统时,把Calibrui Module克隆出来。再根据软件需求,来更

Carlward 的专栏 2496

西门子SMART PLC增量式PID(完整梯形图FC)

西门子PLC自带的PID指令是基于位置型的PID,位置型PID的算法公式和详细介绍,大家可以参看《PID专栏》的其它文章,这里不再赘述。本篇博文直接给出代码部分的讲解,不设计太多公式和理论的推导。限于本人能力,文中难免出现错误和不足之处,诚恳欢迎大家的批评和指正。同时感谢大家的订阅和关注。SMART200 PLC系统自带的PID指令解析,可以参看下面这篇文章:SMART PLC PID算法基本解析(附公式)_RXXW_Dor的博客-CSDN博客_plc的pid算法在态运行中,控制器调节输出值,使偏差 (e

RXXW_Dor的博客 8159

wince5.0 光标

C:\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\SKINNABLEUI\GWE\CURSOR\8BIT 转载于:https://www.cnblogs.com/abo77281/archive/2009/11/23/1608789.html

weixin_34128501的博客 158

Midscene.js(2):代码集成 + 桥接模式(Bridge Mode)的使用「喂饭教程」

本文将手把手教你从零开始搭建一个 Node.js 项目,集成 Midscene.js,并利用其桥接模式实现对 Chrome 浏览器的自动化操作。我们将通过具体的实例,来展示 Midscene.js 的便捷性与 AI 能力的结合。

blues_C的博客 1855

YOLOv12涨点优化:自研检测头 | 独家创新(Partial_C_v12Detect)检测头结构创新,实现涨点

现有12Detect进行二次创新,提升检测精度,独家创新(Partial_C_12Detect)检测头结构创新,适合科研创新度十足,强烈推荐

①订阅者答疑群聊服务;②FDE:工业缺陷检测项目;③paper/创新算法指导;④免费提供YOLO创新涨点推荐顾问Skill和AI小怪兽数字分身; 635

wince下shell 的定制

 首先我们需要了解下定制shenll的整个流程:1、shell可以从两个方面来定制:    a 将一个独立的应用程序作为基于wince设备的shell,任何类型的windows应用程序(.exe)都可以被作为基于wince设备的shell,如果开发者的设备是一台单一功能的设备,且它只进行一个用户应用程序,那么将这个用户应用程序作为shell是一个最好的选择,对于这种处理的方法就是 自己制作

fanyw的专栏 1625

Python计算时间差的方法

使用datetime模块是Python内置的方法,使用timedelta对象可以更精确地计算时间差,而使用dateutil库则提供了更为灵活和方便的操作方式。我们可以使用datetime模块中的datetime类来表示一个具体的日期和时间,并进行相应的运算。在Python中,我们经常需要计算日期和时间之间的差异,例如计算两个日期之间的天数、小时数、分钟数等。Python提供了多种方法来计算时间差,下面我们将介绍其中的几种常用方法,并附上相应的源代码。在上面的代码中,我们使用了dateutil库中的。

学习使你进步。 2092

WinCE 触摸屏校准模块克隆

问题描述:怎样在定制系统时,把Calibrui Module克隆出来。再根据软件需求,来更改触摸屏校准时的UI及控制操作等。先说方法吧。WinCE的文档中的“How to Replace the Calibrui Module”有说明怎么做的步骤。先在PB中把Calibrui Module克隆,便会生成CalibrUi[gwe2 clone]这个Project。我们要做的修改都在这个Proje

SparkMiao的专栏 2527

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

修改注册表实现wince系统界面美化

在定制wince系统过程中,直接修改某些注册表中的值,来实现系统中某些功能。假设项目为:OS_try 一、添加或更改桌面背景图案       1. 添加定制的背景图案文件(如:picture.bmp)到项目OS_try下的xxx_Release目录下;

yizhou2010的专栏 4678

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

WinCE项目应用之车载导航

  WinCE车载导航系统是我过去几年投入精力比较多的一个项目。我的主要工作内容是BSP的移植、硬件模块的调试和WinCE系统的深度定制。如TDA7415驱动、TDA7415均衡器、慧翰车载蓝牙模块、华为EM730的3G通信模块、四线电阻式触摸屏驱动的优化、3G拨号助手、LCD调试助手、WIFI模块AR6102、调试串口的动态复用。不过,这部分工作都是纯嵌入式的,在终端产品中并无直接体现。而我们车...

weixin_30245867的博客 733

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

WinCE 桌面修改

WinCE 桌面修改

ytfgff的博客 927

定制CE系统随笔-续1

更改用户界面颜色 [HKEY_LOCAL_MACHINE\SYSTEM\GWE] "SysColor"=hex: 00,00,00,00, 3A,6E,A5,00, 00,00,00,00, 00,00,00,00,\ EF,EB,DE,00, FF,FF,FF,00, 00,00,00,00, 00,00,00,00,\ ...

weixin_34179762的博客 91
上一篇: 安装PB遇到的问题
下一篇: Windows CE 5.0 数据类型大全
huangtaoyuan
博客等级 码龄20年 33粉丝 30原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值