CTrayNotifyIcon Changelog

What's new in CTrayNotifyIcon 1.77

Oct 28, 2023
  • Fixed an issue where the CTrayNotifyIcon::OnTrayNotification callback method would not work correctly if the m_NotifyIconData.uTimeout member variable gets updated during runtime of client applications. This can occur when you call CTrayNotifyIcon::SetBalloonDetails. Thanks to Maisala Tuomo for reporting this bug.

New in CTrayNotifyIcon 1.76 (Jun 18, 2023)

  • Updated copyright details.
  • Added additional SAL annotations to the code.

New in CTrayNotifyIcon 1.75 (May 22, 2022)

  • Updated copyright details.
  • Updated the code to use C++ uniform initialization for all variable declarations.

New in CTrayNotifyIcon 1.74 (Dec 18, 2021)

  • Updated copyright details.
  • Fixed more Clang-Tidy static code analysis warnings in the code.

New in CTrayNotifyIcon 1.73 (May 12, 2020)

  • Fixed more Clang-Tidy static code analysis warnings in the code.

New in CTrayNotifyIcon 1.72 (Apr 4, 2020)

  • Updated copyright details.
  • Fixed more Clang-Tidy static code analysis warnings in the code.
  • Removed internal declaration of various SDK structs. You now need to define NTDDI_VERSION >= NTDDI_VISTA to use the code.

New in CTrayNotifyIcon 1.71 (Dec 24, 2019)

  • Fixed various Clang-Tidy static code analysis warnings in the code.

New in CTrayNotifyIcon 1.70 (Sep 15, 2019)

  • Replaced enum with enum class throughout the code

New in CTrayNotifyIcon 1.69 (Apr 23, 2019)

  • Updated copyright details
  • Updated the code to clean compile on VC 2019

New in CTrayNotifyIcon 1.68 (Oct 8, 2018)

  • Updated copyright details.
  • Fixed a number of C++ core guidelines compiler warnings. These changes mean that the code will now only compile on VC 2017 or later.

New in CTrayNotifyIcon 1.65 (Dec 23, 2011)

  • Minor update to use DBG_UNREFERENCED_LOCAL_VARIABLE macro. Thanks to Jukka Ojanen for prompting this update

New in CTrayNotifyIcon 1.64 (Dec 23, 2011)

  • Minor update to code in SetTooltipText to code which handles unreferenced variable compiler warning
  • Implemented a GetTooltipMaxSize method which reports the maximum size which the tooltip can be for a tray icon. Thanks to Geert van Horrik for this nice addition
  • All places which copy text to the underlying NOTIFYICONDATA now use the _TRUNCATE parameter in their call to the Safe CRT runtime. This change in behaviour means that client apps will no longer crash if they supply data larger than this Windows structure can accommodate. Thanks to Geert van Horrik for prompting this update
  • All calls to sizeof(struct)/sizeof(first element) have been replaced with _countof
  • Fixed a linker error when compiling the WTL sample app in release mode

New in CTrayNotifyIcon 1.63 (Dec 23, 2011)

  • Updated the sample app to compile cleanly on VS 2010.
  • Fixed a bug in CTrayNotifyIcon::Delete where the code would ASSERT if the tray notify icon was never actually created. Thanks to "trophim" for reporting this bug.

New in CTrayNotifyIcon 1.62 (Dec 23, 2011)

  • Updated copyright details
  • Updated the project settings to more modern default values
  • Updated the WTL version of LoadIcon to use the more modern ModuleHelper class from WTL to get the resource instance. Thanks to "Yarp" for reporting this issue
  • The class now has support for the Windows 7 "NIIF_RESPECT_QUIET_TIME" flag. This value can be set via the new "bQuietTime" parameter to the Create method
  • Updated the code which does version detection of the Shell version

New in CTrayNotifyIcon 1.61 (Feb 28, 2009)

  • Code now compiles cleanly using Code Analysis (/analyze)
  • Updated code to compile correctly using _ATL_CSTRING_EXPLICIT_CONSTRUCTORS define
  • Removed VC 6 style AppWizard comments from the code.
  • The code now only supports VC 2005 or later.