On Windows 10, I use NIIF_USER to add messages in Notification Center
Otherwise, you can use Toasts
https://learn.microsoft.com/en-us/windows/win32/shell/quickstart-sending-desktop-toast
Some samples :
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I use this API (Shell_NotifyIcon(NIM_MODIFY, &m_nidIconData);) to show balloon tip
In windows 10, balloon tip message will show in notification center normally.
In windows 11, balloon tip appear normally but it's message not show in notification center.
In win11, use another api to show message in windows notification center?
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
On Windows 10, I use NIIF_USER to add messages in Notification Center
Otherwise, you can use Toasts
https://learn.microsoft.com/en-us/windows/win32/shell/quickstart-sending-desktop-toast
Some samples :
Hello,
Welcome to Microsoft Q&A!
As far as I'm concerned, there is no need to use another API to show message in windows notification center.
Have you set the Show notifications in notification center
for the app?
I suggest you could try the official sample to check whether the message is displayed in the notification center.
I test the code on win11, the message could be displayed in the notification center.
And you could refer to the Doc: Notifications and the Notification Area
Thank you.
Jeanine
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.