Tuesday 9 August 2011

How to add tray icon to MFC application

GUI application usually has its main window which can be minimized to tray and/or taskbar. When minimized to tray, application is not visible on the desktop but has its icon in the notification area of the taskbar (usually called tray). Through that icon user can access application, see its status and notifications.

Following code shows some basic usage of the tray icon in some MFC dialog:

References and useful links:

Shell_NotifyIcon Function

No comments: