查看文章
 
创建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

类别:Windows Mobile||添加到搜藏 |分享到i贴吧|浏览(1370)|评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
     

   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu