Naughter Software Logo

Toast++ v1.1 A set of C++ classes to provide an encapsulation for Toast Notifications for Desktop Win32 applications

These are the popups you see from Windows normally in the bottom right of the screen which accumulate into Action Center. These toast notification APIs are exposed as Windows Runtime interfaces but can be used from standard Desktop Win32 applications with some work. The Toast++ classes ease this integration process.

 

The classes provided are as follows:

CManager provides a class based encapsulation of an IToastNotifier Windows Runtime interface as well as helper functionality for integrating Win32 applications with Toast Notifications.

CToast provides a class based encapsulation of an IToastNotification Windows Runtime interface as well as support for callback notification through this interface. It also provides a method to setup the toast UI via an XML string parameter.

CContent provides a class which allows you to create the XML for toasts using C++ classes and member variables. For more information on the detailed Toast schema, please see https://docs.microsoft.com/en-us/windows/uwp/controls-and-patterns/tiles-and-notifications-toast-xml-schema.

CActions, CActionsSnoozeAndDismiss, CAdaptiveGroup, CAdaptiveImage, CAdaptiveSubgroup, CAdaptiveText, CAppLogo, CAttributionText, CAudio, CButton, CButtonDismiss, CButtonSnooze, CContextMenuItem, CGenericBinding, CGenericImage, CGenericText, CHeroImage, CProgressBar, CSelectionBox, CSelectionBoxItem, CTextBox, CVisual & CWin81Binding are all the sub classes used by CContent.

 

 

An example of the demo app running along with a couple of popped toasts is shown below:

Toast++ demo app

The enclosed zip file contains the Toast++ source code and a VC 2013 MFC dialog based application which demonstrates most of the classes functionality.

 

Features

 

Copyright

 

Updates

V1.1 (24 June 2016)

V1.0 (3 June 2017)