如何在 Windows Mobile 上制作这样的通知弹出窗口?

发布于 2024-08-22 07:38:30 字数 758 浏览 3 评论 0原文

这些通知弹出窗口有标题、描述和自定义菜单栏。他们打开最前面触摸的菜单栏。我想要为我的应用程序创建所有这些东西。

如何在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

栀子花开つ 2024-08-29 07:38:30

您始终可以 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.

静谧 2024-08-29 07:38:30

我找到了方法,所以我回答我自己的问题:

以下博客文章很有用

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文