void TrayIcon::Notify(dword msg) { if(visible) { nid.flags = NIF_ICON|NIF_MESSAGE|NIF_TIP; if(nid.icon) DestroyIcon(nid.icon); nid.icon = IconWin32(icon); String stip = ToSystemCharset(tip); int len = min(stip.GetLength(), 60); memcpy(nid.tip, stip, len); nid.tip[len] = 0; VERIFY(Shell_NotifyIcon(msg, (NOTIFYICONDATA *)&nid)); } }
int len = min(stip.GetLength(), 60);
int len = stip.GetLength();
Report message to a moderator