Click here to Skip to main content
15,906,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNo Balloon Tip Pin
Great A'Tuin31-Jan-06 22:37
Great A'Tuin31-Jan-06 22:37 
hi,

I want to display a little balloon tip on my tray icon but the balloon just won't appear, although the tray icon is visible. the app is based on MFC and here's the code that doesn't work. it is located in OnInitDialog:


<br />
<br />
ndata.cbSize=sizeof(NOTIFYICONDATA);<br />
ndata.hWnd = m_hWnd;<br />
ndata.uFlags = NIF_ICON | NIF_MESSAGE | NIF_INFO;<br />
ndata.uID = IDI_DISABLED;<br />
ndata.dwInfoFlags = NIIF_NONE;<br />
<br />
ndata.hIcon = (HICON) LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDI_DISABLED), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR); <br />
<br />
ndata.uCallbackMessage = WM_POPUP;<br />
ndata.uTimeout = 10000;<br />
<br />
wcscpy(ndata.szInfoTitle,_T("Test"));<br />
wcscpy(ndata.szInfo, _T("Test"));	<br />
<br />
Shell_NotifyIcon(NIM_ADD, &ndata);<br />
<br />


ndata is of type NOTIFYICONDATA and is a member of my dialog class.

any clues what could be wrong with that ?

greets

-- modified at 4:38 Wednesday 1st February, 2006
AnswerRe: No Balloon Tip Pin
Owner drawn31-Jan-06 22:53
Owner drawn31-Jan-06 22:53 
GeneralRe: No Balloon Tip Pin
Great A'Tuin31-Jan-06 23:12
Great A'Tuin31-Jan-06 23:12 
GeneralRe: No Balloon Tip Pin
Owner drawn31-Jan-06 23:13
Owner drawn31-Jan-06 23:13 
GeneralRe: No Balloon Tip Pin
Great A'Tuin31-Jan-06 23:21
Great A'Tuin31-Jan-06 23:21 
GeneralRe: No Balloon Tip Pin
Owner drawn31-Jan-06 23:26
Owner drawn31-Jan-06 23:26 
GeneralRe: No Balloon Tip Pin
Owner drawn31-Jan-06 23:31
Owner drawn31-Jan-06 23:31 
GeneralRe: No Balloon Tip Pin
Great A'Tuin31-Jan-06 23:39
Great A'Tuin31-Jan-06 23:39 
GeneralRe: No Balloon Tip Pin
Owner drawn31-Jan-06 23:42
Owner drawn31-Jan-06 23:42 
GeneralRe: No Balloon Tip Pin
Owner drawn31-Jan-06 23:50
Owner drawn31-Jan-06 23:50 
GeneralRe: No Balloon Tip Pin
Great A'Tuin1-Feb-06 0:04
Great A'Tuin1-Feb-06 0:04 
QuestionPropertyPages+Sheet Pin
hanno2531-Jan-06 21:39
hanno2531-Jan-06 21:39 
AnswerRe: PropertyPages+Sheet Pin
Rage31-Jan-06 21:43
professionalRage31-Jan-06 21:43 
GeneralRe: PropertyPages+Sheet Pin
hanno2531-Jan-06 21:48
hanno2531-Jan-06 21:48 
GeneralRe: PropertyPages+Sheet Pin
Rage31-Jan-06 23:00
professionalRage31-Jan-06 23:00 
AnswerRe: PropertyPages+Sheet Pin
PJ Arends1-Feb-06 7:55
professionalPJ Arends1-Feb-06 7:55 
QuestionHow to find Processor serial no? Pin
<color>Aljechin 31-Jan-06 21:35
<color>Aljechin 31-Jan-06 21:35 
AnswerRe: How to find Processor serial no? Pin
Owner drawn31-Jan-06 21:54
Owner drawn31-Jan-06 21:54 
AnswerRe: How to find Processor serial no? Pin
_AnsHUMAN_ 31-Jan-06 22:13
_AnsHUMAN_ 31-Jan-06 22:13 
Questionhello.. Pin
KORCARI31-Jan-06 21:35
KORCARI31-Jan-06 21:35 
AnswerRe: hello.. Pin
_AnsHUMAN_ 31-Jan-06 21:44
_AnsHUMAN_ 31-Jan-06 21:44 
QuestionI still dont know how to move the hole Pin
eivanlo31-Jan-06 21:04
eivanlo31-Jan-06 21:04 
AnswerRe: I still dont know how to move the hole Pin
Stephen Hewitt31-Jan-06 21:37
Stephen Hewitt31-Jan-06 21:37 
Questionascii code for Ctrl+Esc Pin
mysticlol31-Jan-06 20:00
mysticlol31-Jan-06 20:00 
AnswerRe: ascii code for Ctrl+Esc Pin
kakan31-Jan-06 20:47
professionalkakan31-Jan-06 20:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.