繁体   English   中英

任务栏中的图标通知

[英]Icon Notification in Taskbar

我正在用 C++ 编写一个程序,在某些时候,需要在任务栏中抛出应用程序通知。 我添加了一张图片来说明我的意思。

以前我已经对此进行了一些搜索,但没有运气,我只能设法找到程序创建对话框并将其抛出给用户的解决方案。

我只是想问一下,C++ 可以实现这样的功能吗? 我创建了一个小程序,我需要这样的东西才能工作:

#include <iostream>
#include <string>

using namespace std;

string input;

int main() {

while (1) {

    cout << "Type \"test\" to throw a test prompt: ";
    cin >> input;

    if (input == "test") {

        // throw prompt
    }

    else {
        cout << "That wasn't \"test\"";
        cout << '\n';
    }
}

system("pause");
}

在此处输入图片说明

调用FlashWindowEx函数以闪烁窗口的任务栏按钮。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM