MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / SendNotification

Method SendNotification

TranslucentTB/tray/trayicon.cpp:176–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void TrayIcon::SendNotification(uint16_t textResource, UINT flags, DWORD infoFlags)
177{
178 if (m_CurrentlyShowing)
179 {
180 // copy the data because if explorer restarts or the theme/settings change we don't want to re-send the notification
181 auto data = m_IconData;
182 data.uFlags |= NIF_INFO | flags;
183 data.dwInfoFlags = infoFlags;
184 // don't set szInfoTitle, the OS will show the app name already.
185
186 Localization::LoadLocalizedResourceString(textResource, hinstance()).copy(data.szInfo, std::size(data.szInfo));
187
188 Notify(NIM_MODIFY, &data);
189 }
190}
191
192TrayIcon::~TrayIcon() noexcept(false)
193{

Callers 1

CreateWelcomePageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected