WinToast
WinToast copied to clipboard
Question About Wintoast notification
hope this message finds you well. I am currently working on a project that involves the implementation of an action button within a context menu for handling toast notifications. Specifically, I am encountering challenges with the temp1.addAction functionality in my code.
Below is the snippet of the code in question:
WinToastTemplate CustomTemplate() {
WinToastTemplate templ;
templ = WinToastTemplate(WinToastTemplate::ImageAndText02);
WinToastTemplate::CropHint::Circle;
templ.setTextField(L"Hello World!", WinToastTemplate::FirstLine);
templ.setTextField(L"This is a toast notification", WinToastTemplate::SecondLine);
// Add action buttons
templ.addAction(L"Open");
return templ;
}
so the addAction does not work on windows 11 for some reason