trayicon balloon sometimes does not show up

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2009
Posts: 5
Reputation: faranshabbir is an unknown quantity at this point 
Solved Threads: 0
faranshabbir faranshabbir is offline Offline
Newbie Poster

trayicon balloon sometimes does not show up

 
0
  #1
Aug 7th, 2009
Hello, I compiled my trayicon utility c++ code in visual studio 2005 express edition and tray icon balloons showed up successfully but later I deleted my firewall, switched on to windows firewall and now I am on another firewall software. Now i ran my same project and balloons showed up successfully but when i rebuilt it, i can't see balloons anymore. My Shell_NotifyIcon method still returns true.

Here is the code:
  1. nid.cbSize = sizeof( NOTIFYICONDATA_V2_SIZE ); // i've tested NOTIFYICONDATA //and nid as well
  2.  
  3. nid.hWnd = hWnd;
  4. nid.uID = uID;
  5. nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP|NIF_INFO; nid.dwInfoFlags = 0x00000004;
  6. strcpy(nid.szInfoTitle , balloonTitle);
  7. strcpy(nid.szInfo , balloonMsg);
  8. int ret = Shell_NotifyIcon( NIM_MODIFY, &nid );
Can anybody suggest where does the problem lie? it seems it is related to OS, my OS is XP and i've even modified "EnableBalloonTips" to 1.

Faran Shabbir
Last edited by faranshabbir; Aug 7th, 2009 at 9:41 am.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 5
Reputation: faranshabbir is an unknown quantity at this point 
Solved Threads: 0
faranshabbir faranshabbir is offline Offline
Newbie Poster

Re: trayicon balloon sometimes does not show up

 
0
  #2
Aug 10th, 2009
anyone... please????
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 147
Reputation: Laiq Ahmed will become famous soon enough Laiq Ahmed will become famous soon enough 
Solved Threads: 20
Laiq Ahmed Laiq Ahmed is offline Offline
Junior Poster

Re: trayicon balloon sometimes does not show up

 
0
  #3
Aug 10th, 2009
Read the following Link Carefully and check for MACRO & GUID that needs to be defined in case of XP, I am assuming that you are good in understanding msdn doc. If you still find it difficult to implement I will provide you the sample.

http://msdn.microsoft.com/en-us/libr...52(VS.85).aspx

Hope the above link helps.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 5
Reputation: faranshabbir is an unknown quantity at this point 
Solved Threads: 0
faranshabbir faranshabbir is offline Offline
Newbie Poster

Re: trayicon balloon sometimes does not show up

 
0
  #4
Aug 11th, 2009
Originally Posted by Laiq Ahmed View Post
Read the following Link Carefully and check for MACRO & GUID that needs to be defined in case of XP, I am assuming that you are good in understanding msdn doc. If you still find it difficult to implement I will provide you the sample.

http://msdn.microsoft.com/en-us/libr...52(VS.85).aspx

Hope the above link helps.
Thanks much... it has been helpful.

The problem was here:
  1. nid.cbSize = sizeof( NOTIFYICONDATA_V2_SIZE );
it should be:
  1. nid.cbSize = NOTIFYICONDATA_V2_SIZE;
It is used for Windows 2000 or later versions. The prior one was returning wrong value (as expected)
Last edited by faranshabbir; Aug 11th, 2009 at 3:11 am.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC