| | |
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:
Solved Threads: 0
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:
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
Here is the code:
C++ Syntax (Toggle Plain Text)
nid.cbSize = sizeof( NOTIFYICONDATA_V2_SIZE ); // i've tested NOTIFYICONDATA //and nid as well 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 );
Faran Shabbir
Last edited by faranshabbir; Aug 7th, 2009 at 9:41 am.
•
•
Join Date: Jun 2006
Posts: 147
Reputation:
Solved Threads: 20
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.
http://msdn.microsoft.com/en-us/libr...52(VS.85).aspx
Hope the above link helps.
•
•
Join Date: Aug 2009
Posts: 5
Reputation:
Solved Threads: 0
•
•
•
•
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.
The problem was here:
C++ Syntax (Toggle Plain Text)
nid.cbSize = sizeof( NOTIFYICONDATA_V2_SIZE );
C++ Syntax (Toggle Plain Text)
nid.cbSize = NOTIFYICONDATA_V2_SIZE;
Last edited by faranshabbir; Aug 11th, 2009 at 3:11 am.
![]() |
Similar Threads
- We only give homework help to those who show effort (Computer Science)
- Trayicon problem (Pascal and Delphi)
- the 2 little computers do not show on the taskbar, connection issue (Windows NT / 2000 / XP)
- Show Encrypted Files in Color (Windows tips 'n' tweaks)
- Right click menu slow to show (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: Random Number Generator
- Next Thread: insert Image
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





