如何在 Windows Mobile 上制作这样的通知弹出窗口?
这些通知弹出窗口有标题、描述和自定义菜单栏。他们打开最前面触摸的菜单栏。我想要为我的应用程序创建所有这些东西。
如何在 Windows Mobile 上制作这样的通知弹出窗口? 我使用 CF 2.0 和 C#。
通知弹出窗口 http://img130.imageshack.us/img130/7595/ss2hdl.jpg< /a>
UPDATE1
对Notification类的使用的链接引用不提供主菜单的用法。
如何自定义隐藏/下一步菜单栏?
更新2
当我的应用程序退出时,如何删除未使用的通知?
我已将通知保存为类属性,使用析构函数使其不可见,但仍保留在带有图标的顶部栏上。
~clsPolling()
{
if (notification1 != null)
{
notification1.Visible = false;
notification1.Dispose();
}
}
These notification popups have a title, a description, and a custom menubar. They open up front-most touched to the menubar. I want all this stuff created for my app.
How can I make notification popups on Windows Mobile like this?
I am on CF 2.0 and C#.
Notification Popups http://img130.imageshack.us/img130/7595/ss2hdl.jpg
UPDATE1
The linked reference to the use of Notification class does not provide usage for the main menu.
How can I customize the menubar those Hide/Next ?
UPDATE2
How can I remove the unused notification when my application exits?
I have saved the notification as a class property, used the destructor to make it invisible but still stays on the top bar with the icon.
~clsPolling()
{
if (notification1 != null)
{
notification1.Visible = false;
notification1.Dispose();
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请参阅此问题:Windows Mobile 通知对话框。
您使用类
Microsoft.WindowsCE.Forms .通知
。See this question: Windows Mobile notification dialog.
You use the class
Microsoft.WindowsCE.Forms.Notification
.您始终可以 PInvoke 本机调用 SHNotificationAdd。菜单信息存储在SHNOTIFICATIONDATA结构中的skm和rgskn字段中。
You could always PInvoke the native call SHNotificationAdd. The menu information is stored in the skm and rgskn fields in the SHNOTIFICATIONDATA structure.
我找到了方法,所以我回答我自己的问题:
以下博客文章很有用
http ://www.christec.co.nz/blog/archives/104
http://www.christec.co.nz/blog/archives/150
I found the method, so I am answering my own question:
the following blog posts are useful
http://www.christec.co.nz/blog/archives/104
http://www.christec.co.nz/blog/archives/150