MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / ShowBalloonTip

Function ShowBalloonTip

WinArk/WinArk.cpp:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59{ 0xa67605f7, 0xbcfa, 0x47f0, { 0x97, 0xd, 0x92, 0x79, 0x9d, 0x8f, 0x37, 0x5e } };
60
61bool ShowBalloonTip(PCWSTR title, PCWSTR text, ULONG timeout) {
62 NOTIFYICONDATA notifyIcon = { sizeof(NOTIFYICONDATA) };
63
64
65 notifyIcon.uFlags = NIF_INFO | NIF_GUID;
66 notifyIcon.hWnd = _hMainWnd;
67 notifyIcon.uID = IDR_MAINFRAME;
68 notifyIcon.guidItem = iconGuid;
69 wcsncpy_s(notifyIcon.szInfoTitle, RTL_NUMBER_OF(notifyIcon.szInfoTitle), title, _TRUNCATE);
70 wcsncpy_s(notifyIcon.szInfo, RTL_NUMBER_OF(notifyIcon.szInfo), text, _TRUNCATE);
71 notifyIcon.uTimeout = timeout;
72 notifyIcon.dwInfoFlags = NIIF_INFO;
73
74 return Shell_NotifyIcon(NIM_MODIFY, &notifyIcon);
75}
76
77bool ShowIconNotication(PCWSTR title, PCWSTR text) {
78 bool success = ShowBalloonTip(title, text, 10);

Callers 1

ShowIconNoticationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected