<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[tray icon verschwindet erst beim drüberfahren mit der Maus]]></title><description><![CDATA[<p>Hallo,</p>
<p>hab ein trayIcon was auch sehr gut klappt.<br />
Das Problem ist nur dass ich beim schliessen der Anwendung erst mit der Maus über das Icon fahren muss damit es verschwindet.<br />
Das selbe Problem wie beim entfernen eines USB Sticks bei WinXP.<br />
Weiss jemand wie man das Problem verhindern könnte?</p>
<p>Danke..</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/99948/tray-icon-verschwindet-erst-beim-drüberfahren-mit-der-maus</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 17:38:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/99948.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Feb 2005 12:48:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to tray icon verschwindet erst beim drüberfahren mit der Maus on Wed, 02 Feb 2005 12:48:14 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>hab ein trayIcon was auch sehr gut klappt.<br />
Das Problem ist nur dass ich beim schliessen der Anwendung erst mit der Maus über das Icon fahren muss damit es verschwindet.<br />
Das selbe Problem wie beim entfernen eines USB Sticks bei WinXP.<br />
Weiss jemand wie man das Problem verhindern könnte?</p>
<p>Danke..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/712792</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/712792</guid><dc:creator><![CDATA[progi122]]></dc:creator><pubDate>Wed, 02 Feb 2005 12:48:14 GMT</pubDate></item><item><title><![CDATA[Reply to tray icon verschwindet erst beim drüberfahren mit der Maus on Wed, 02 Feb 2005 12:52:43 GMT]]></title><description><![CDATA[<p>Zerstörst du denn das Icon beim beenden deiner Anwendung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/712795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/712795</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 02 Feb 2005 12:52:43 GMT</pubDate></item><item><title><![CDATA[Reply to tray icon verschwindet erst beim drüberfahren mit der Maus on Wed, 02 Feb 2005 13:10:55 GMT]]></title><description><![CDATA[<p>Ja, und zwar so:</p>
<pre><code class="language-cpp">void CDirControlDlg::OnDestroy() 
{
	CDialog::OnDestroy();
	DestroyIcon (m_hIcon);

	m_hIcon = 0;
}
</code></pre>
<p>Jetz hab ich es zwar geschafft dass das icon weg is aber der Platz an dem es stand nicht freigegeben wird, sprich da is ein grauer Fleck der erst weg geht wenn ich mit der Maus drüber fahre.</p>
<p>Grüsse</p>
]]></description><link>https://www.c-plusplus.net/forum/post/712808</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/712808</guid><dc:creator><![CDATA[progi23]]></dc:creator><pubDate>Wed, 02 Feb 2005 13:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to tray icon verschwindet erst beim drüberfahren mit der Maus on Wed, 02 Feb 2005 13:32:19 GMT]]></title><description><![CDATA[<p>du musst Shell_NotifyIcon mit NIM_DELETE aufrufen.<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shell_notifyicon.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shell_notifyicon.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/712824</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/712824</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 02 Feb 2005 13:32:19 GMT</pubDate></item><item><title><![CDATA[Reply to tray icon verschwindet erst beim drüberfahren mit der Maus on Wed, 02 Feb 2005 14:19:35 GMT]]></title><description><![CDATA[<p>das mach ich ja auch, klappt aber trotzdem nicht! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
<pre><code class="language-cpp">CDialog::OnDestroy();
	DestroyIcon (m_hIcon);

	m_hIcon = 0;
	mfn_TrayMessage(NIM_DELETE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/712863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/712863</guid><dc:creator><![CDATA[progi123]]></dc:creator><pubDate>Wed, 02 Feb 2005 14:19:35 GMT</pubDate></item><item><title><![CDATA[Reply to tray icon verschwindet erst beim drüberfahren mit der Maus on Wed, 02 Feb 2005 14:24:04 GMT]]></title><description><![CDATA[<p>zeig doch mal dein funktion mfn_TrayMessage(..) und vielleicht DestroyIcon(..) nach deiner message.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/712868</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/712868</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 02 Feb 2005 14:24:04 GMT</pubDate></item><item><title><![CDATA[Reply to tray icon verschwindet erst beim drüberfahren mit der Maus on Wed, 02 Feb 2005 14:34:22 GMT]]></title><description><![CDATA[<p>Hi,<br />
hat sich erledigt,<br />
hab nen blöden Fehler gemacht und zwar den Parameter nicht gesetzt.<br />
Bei dwMessage hab ich NIM_ADD fest stehen gehabt. Sowas, sowas...<br />
So gehts:</p>
<pre><code class="language-cpp">BOOL CDirControlDlg::mfn_TrayMessage(DWORD dwMessage)
{
	BOOL res;
	NOTIFYICONDATA tnd;
	tnd.cbSize		= sizeof(NOTIFYICONDATA);
	tnd.hWnd		= m_hWnd;
	tnd.uID			= 1;
	tnd.uFlags		= NIF_MESSAGE|NIF_ICON|NIF_TIP;
	tnd.uCallbackMessage	= WM_NOTIFYICON_;//WM_USER+1
	tnd.hIcon		= m_hIcon;
	strcpy(tnd.szTip,&quot;Insight Tool&quot;);
	res = Shell_NotifyIcon(dwMessage, &amp;tnd);
	Shell_NotifyIcon(dwMessage,&amp;tnd);
	ShowWindow(SW_HIDE);
	return res;
}
</code></pre>
<p>Aufruf...</p>
<pre><code class="language-cpp">void CDirControlDlg::OnDestroy() 
{
	CDialog::OnDestroy();
	DestroyIcon (m_hIcon);
	mfn_TrayMessage(NIM_DELETE);
}
</code></pre>
<p>Grüsse</p>
]]></description><link>https://www.c-plusplus.net/forum/post/712882</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/712882</guid><dc:creator><![CDATA[progi123]]></dc:creator><pubDate>Wed, 02 Feb 2005 14:34:22 GMT</pubDate></item><item><title><![CDATA[Reply to tray icon verschwindet erst beim drüberfahren mit der Maus on Wed, 02 Feb 2005 14:36:42 GMT]]></title><description><![CDATA[<p>Mit welcher Funktion lädst du dein Icon? Normalerweise ist DestroyIcon nicht nötig. Und wenn schon dann mach das am besten nachdem du es mit Shell_NotifyIcon entfernt hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/712886</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/712886</guid><dc:creator><![CDATA[Shell_NotifyIcon]]></dc:creator><pubDate>Wed, 02 Feb 2005 14:36:42 GMT</pubDate></item></channel></rss>