<?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[TrayMessage]]></title><description><![CDATA[<p>Hallo.</p>
<p>Habe folgenden Code zum Einrichten eines SystemTray-Icons inklusive Menü gefunden. Kann mir jemand ausführlich erklären was genau in den einzelnen Zeilen gesetzt wird? Alles weitere dazu (Code in der WindowProzedur zur Bearbeitung der Messages) habe ich verstanden.</p>
<p>Vielen Dank.</p>
<pre><code class="language-cpp">BOOL TrayMessage(HWND hWnd, DWORD iMsg, HICON hIcon, PSTR pszTip)
{  NOTIFYICONDATA tnd; 
   tnd.cbSize		= sizeof(NOTIFYICONDATA);
   tnd.hWnd		= hWnd;
   tnd.uID		= ID_TRAYICON;
   tnd.uFlags		= NIF_MESSAGE|NIF_ICON|NIF_TIP;
   tnd.uCallbackMessage = WM_TRAY_NOTIFICATION;
   tnd.hIcon		= hIcon;
   lstrcpyn(tnd.szTip, pszTip, sizeof(tnd.szTip));

   BOOL res = Shell_NotifyIcon(iMsg, &amp;tnd);
   if (hIcon) DestroyIcon(hIcon);
   return res;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/129679/traymessage</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 06:59:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/129679.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Dec 2005 16:10:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TrayMessage on Thu, 15 Dec 2005 16:10:54 GMT]]></title><description><![CDATA[<p>Hallo.</p>
<p>Habe folgenden Code zum Einrichten eines SystemTray-Icons inklusive Menü gefunden. Kann mir jemand ausführlich erklären was genau in den einzelnen Zeilen gesetzt wird? Alles weitere dazu (Code in der WindowProzedur zur Bearbeitung der Messages) habe ich verstanden.</p>
<p>Vielen Dank.</p>
<pre><code class="language-cpp">BOOL TrayMessage(HWND hWnd, DWORD iMsg, HICON hIcon, PSTR pszTip)
{  NOTIFYICONDATA tnd; 
   tnd.cbSize		= sizeof(NOTIFYICONDATA);
   tnd.hWnd		= hWnd;
   tnd.uID		= ID_TRAYICON;
   tnd.uFlags		= NIF_MESSAGE|NIF_ICON|NIF_TIP;
   tnd.uCallbackMessage = WM_TRAY_NOTIFICATION;
   tnd.hIcon		= hIcon;
   lstrcpyn(tnd.szTip, pszTip, sizeof(tnd.szTip));

   BOOL res = Shell_NotifyIcon(iMsg, &amp;tnd);
   if (hIcon) DestroyIcon(hIcon);
   return res;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/943008</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/943008</guid><dc:creator><![CDATA[seventh_son]]></dc:creator><pubDate>Thu, 15 Dec 2005 16:10:54 GMT</pubDate></item><item><title><![CDATA[Reply to TrayMessage on Thu, 15 Dec 2005 16:14:44 GMT]]></title><description><![CDATA[<p>Warum guckst du nicht selbst in der Hilfe (MSDN) nach?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/943010</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/943010</guid><dc:creator><![CDATA[?????????]]></dc:creator><pubDate>Thu, 15 Dec 2005 16:14:44 GMT</pubDate></item><item><title><![CDATA[Reply to TrayMessage on Thu, 15 Dec 2005 16:49:06 GMT]]></title><description><![CDATA[<p>Ich finde nichts darüber.</p>
<p>Allerdings kenn ich mich mit der MSDN auch nicht gut aus, mag sein dass ich falsch suche.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/943017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/943017</guid><dc:creator><![CDATA[seventh_son]]></dc:creator><pubDate>Thu, 15 Dec 2005 16:49:06 GMT</pubDate></item><item><title><![CDATA[Reply to TrayMessage on Thu, 15 Dec 2005 18:51:41 GMT]]></title><description><![CDATA[<p>Gib den Namen der Struktur/Funktion + msdn in Google ein. Das klappt fast immer.</p>
<p>Und lade dir das Platform SDK runter. Da ist die Dokumentation der WinAPI Sachen dabei worüber du es noch schneller finden kannst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/943020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/943020</guid><dc:creator><![CDATA[?????????]]></dc:creator><pubDate>Thu, 15 Dec 2005 18:51:41 GMT</pubDate></item><item><title><![CDATA[Reply to TrayMessage on Thu, 15 Dec 2005 21:07:26 GMT]]></title><description><![CDATA[<p>Wenn ich in Google suche finde ich nur einen Artikel zu C#, und da wird die Struktur auch nicht näher beschrieben, nur verwendet.</p>
<p>Wo bekomme ich das SDK her? Unter Downloads finde ich nichts.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/943146</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/943146</guid><dc:creator><![CDATA[seventh_son]]></dc:creator><pubDate>Thu, 15 Dec 2005 21:07:26 GMT</pubDate></item><item><title><![CDATA[Reply to TrayMessage on Thu, 15 Dec 2005 22:07:13 GMT]]></title><description><![CDATA[<p>Google Suchbegriff: NOTIFYICONDATA + msdn<br />
Erster Treffer: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/structures/notifyicondata.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/structures/notifyicondata.asp</a></p>
<p>Google Suchbegriff: Shell_NotifyIcon + msdn<br />
Erster Treffer: <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>
<p>Google Suchbegriff: Platform SDK<br />
Erster Treffer: <a href="http://www.microsoft.com/msdownload/platformsdk/sdkupdate/" rel="nofollow">http://www.microsoft.com/msdownload/platformsdk/sdkupdate/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/943173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/943173</guid><dc:creator><![CDATA[????????????]]></dc:creator><pubDate>Thu, 15 Dec 2005 22:07:13 GMT</pubDate></item></channel></rss>