<?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[Menü eines Tray icons]]></title><description><![CDATA[<p>Hallo!<br />
ich habe schon die FAQ und die Forensuche bzw. Google benutzt, aber es will einfach nicht klappen. Ich hab ein Icon in das Tray eingefügt und will jetzt auch ein Menü, doch es zeigt sich nicht. Hier mein Code:</p>
<pre><code class="language-cpp">case WM_RBUTTONUP:
            {
				hmenu = LoadMenu(GetModuleHandle(0), MAKEINTRESOURCE(IDR_MENU1));
				hmenuTrackPopup = GetSubMenu(hmenu, 0); 
				SetForegroundWindow(hDlg);
				GetCursorPos(&amp;pt);
				TrackPopupMenu(hmenuTrackPopup, TPM_RIGHTBUTTON, pt.x, pt.y, 0, hDlg, NULL);
				PostMessage(hDlg, WM_NULL, 0, 0); 
            }
</code></pre>
<p>Weiß vielleicht wer, wo der hacken ist? Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/235976/menü-eines-tray-icons</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 02:40:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/235976.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Mar 2009 12:01:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Menü eines Tray icons on Mon, 09 Mar 2009 12:01:27 GMT]]></title><description><![CDATA[<p>Hallo!<br />
ich habe schon die FAQ und die Forensuche bzw. Google benutzt, aber es will einfach nicht klappen. Ich hab ein Icon in das Tray eingefügt und will jetzt auch ein Menü, doch es zeigt sich nicht. Hier mein Code:</p>
<pre><code class="language-cpp">case WM_RBUTTONUP:
            {
				hmenu = LoadMenu(GetModuleHandle(0), MAKEINTRESOURCE(IDR_MENU1));
				hmenuTrackPopup = GetSubMenu(hmenu, 0); 
				SetForegroundWindow(hDlg);
				GetCursorPos(&amp;pt);
				TrackPopupMenu(hmenuTrackPopup, TPM_RIGHTBUTTON, pt.x, pt.y, 0, hDlg, NULL);
				PostMessage(hDlg, WM_NULL, 0, 0); 
            }
</code></pre>
<p>Weiß vielleicht wer, wo der hacken ist? Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1676611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1676611</guid><dc:creator><![CDATA[Houston in da´ House]]></dc:creator><pubDate>Mon, 09 Mar 2009 12:01:27 GMT</pubDate></item><item><title><![CDATA[Reply to Menü eines Tray icons on Mon, 09 Mar 2009 12:37:50 GMT]]></title><description><![CDATA[<p>ok es hat jetzt geklappt, aber wie kann ich dann die Clicks im Menü abfragen bzw. wo? z.b. case ID_EXIT von exit wo muss das stehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1676645</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1676645</guid><dc:creator><![CDATA[Houston in da´ House]]></dc:creator><pubDate>Mon, 09 Mar 2009 12:37:50 GMT</pubDate></item><item><title><![CDATA[Reply to Menü eines Tray icons on Mon, 09 Mar 2009 13:19:00 GMT]]></title><description><![CDATA[<p>es funktioniert jetzt danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1676679</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1676679</guid><dc:creator><![CDATA[Houston in da´ House]]></dc:creator><pubDate>Mon, 09 Mar 2009 13:19:00 GMT</pubDate></item></channel></rss>