查看文章 |
创建Pocket PC Today 插件 C# Windows Mobile Today Panel Item
2009年04月07日 12:20
1.新建一个Smart Device Application
2.把Form的FormBorderStyle 属性改成:None 3.追加dll参照:Christec.WindowsMobile.TodayScreen.dll 4.Form.cs代码的修改: using Christec.WindowsMobile.TodayScreen; public partial class Form1 : TodayScreenPluginForm { public Form1() : base(4567) { InitializeComponent(); } } 以上四步完成后给这个Application添加一个Smart Device CAB Project 将上面的Project添加到这个CAB Project里 在CAB Project中添加下列注册表内容: HKLM\Software\Microsoft\Today\Items\<Name> DLL = “\Windows\ManagedTodayScreenItem.dll”
Flags = 4567 Name = “A name for the item” Options = 0 Type = 4 HKLM\Software\ChrisTec\ManagedTodayScreenPlugins\<id>
(default) = “\path\to\managed\executable.exe”
Height = height of today screen item in pixels. 编译CAB文件
安装:
1.安装ChrisTec.WindowsMobile.TodayScreen-Framework.CAB 2.安装编译后的xxxx.CAB文件 Christec.WindowsMobile.TodayScreen.dll 和ChrisTec.WindowsMobile.TodayScreen-Framework.CAB的下载地址 http://cid-e0e9a54f845adb6e.skydrive.live.com/browse.aspx/.Public?uc=2&isFromRichUpload=1&lc=1041 |
最近读者:

