I compiled my utility code for C ++ wallet in visual studio 2005 express edition and there were balloons with icons in the tray, but later I deleted my firewall, turned it on in the Windows firewall, and now I'm in a different firewall. Now I ran in the same project and the balloons appeared successfully, but when I rebuilt it, I no longer see the balloons. My Shell_NotifyIcon method still returns true.
Here is the code:
nid.cbSize = sizeof( NOTIFYICONDATA_V2_SIZE );
nid.hWnd = hWnd;
nid.uID = uID;
nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP|NIF_INFO;
nid.dwInfoFlags = 0x00000004;
strcpy(nid.szInfoTitle , balloonTitle);
strcpy(nid.szInfo , balloonMsg);
int ret = Shell_NotifyIcon( NIM_MODIFY, &nid );
Can anyone suggest where the problem is? this seems to be OS related, my OS is XP, and I even modified "EnableBalloonTips" to 1.
Faran Shabbir
source
share