File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ class CustomHandler : public IWinToastHandler {
16
16
exit (16 + actionIndex);
17
17
}
18
18
19
+ void toastActivated (const char * response) const {
20
+ std::wcout << L" The user clicked on action #" << response << std::endl;
21
+ }
22
+
19
23
void toastDismissed (WinToastDismissalReason state) const {
20
24
switch (state) {
21
25
case UserCanceled:
Original file line number Diff line number Diff line change @@ -69,9 +69,14 @@ class CustomHandler : public IWinToastHandler {
69
69
std::wcout << L" The user clicked on button #" << actionIndex << L" in this toast" << std::endl;
70
70
}
71
71
72
+ void toastActivated (const char * response) const {
73
+ std::wcout << L" The user clicked on action #" << response << std::endl;
74
+ }
75
+
72
76
void toastFailed () const {
73
77
std::wcout << L" Error showing current toast" << std::endl;
74
78
}
79
+
75
80
void toastDismissed (WinToastDismissalReason state) const {
76
81
switch (state) {
77
82
case UserCanceled:
You can’t perform that action at this time.
0 commit comments