BOOL CwebContainerDlg: : ShowBalloonTip (LPCTSTR szMsg, LPCTSTR szTitle, UINT uTimeout, dwords dwInfoFlags)
{
Nid. CbSize=sizeof (NOTIFYICONDATA);
Nid. UFlags=NIF_INFO;
Nid. UTimeout=uTimeout;
Nid. DwInfoFlags=dwInfoFlags;
Wcscpy (nid. SzInfo szMsg? SzMsg: _T (" "));
Wcscpy (nid. SzInfoTitle, szTitle? SzTitle: _T (" "));
Return Shell_NotifyIcon (NIM_MODIFY, & amp; Nid);
}
This is I use a timer start
if (nid. HIcon)
{
DestroyIcon (nid. HIcon);
Nid. HIcon=NULL;
Shell_NotifyIcon (NIM_MODIFY, & amp; Nid);
}
The else
{
DestroyIcon (nid. HIcon);
Nid. HIcon=LoadIcon (AfxGetInstanceHandle (), MAKEINTRESOURCE (IDI_MAINFRAME);;//load icon in
Shell_NotifyIcon (NIM_MODIFY, & amp; Nid);
}