我正在用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");
}