Jaa


Shell Notification API: does it remove dismissed notifications even without a sink window?

A question on ShNAPI (the Shell Notification API - it's fun to say the acronym!):

Will the OS remove the notification if pCurrentNotification->hwndSink = NULL when the user clicks the OK button i the bubble, or do I have to keep my application open to do the SHRemoveNotification call to clean up?

Yes - the Shell will remove your notification from the tray when it's dismissed by a command button or link, as long as it's not the special value IDCANCEL (2) which is reserved for “Hide” semantics.

James Drage
Windows Mobile Shell Team