<?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üfrage]]></title><description><![CDATA[<p>hi</p>
<p>ich schreib grad ein prog, dass sich über ein Icon im SysTray ( sowas neben der uhr wie bei ICQ ) steuern lassen soll.</p>
<p>ich fang also die nachricht ab die ich bei Shell_NotifyIcon() angeben hab und wenn die rechte maustaste gedrückt is, dann zeig ich per TrackPopupMenu() mein menü an.</p>
<p>hier mal ein wenig code aus meiner nachrichtenprozedur:</p>
<pre><code class="language-cpp">...

case WM_NOTIFYICON:

		if( GetAsyncKeyState( VK_RBUTTON ) )
		{

			POINT p;

			GetCursorPos( &amp;p );

			TrackPopupMenu( hMenu, TPM_LEFTALIGN, p.x, p.y, 0, hWnd, 0 );

		}

		break;

...
</code></pre>
<p>mein problem is, dass, wenn man jetzt neben das menü irgendwo hinklickt, das menü ganz normal wieder verschwinden soll, was es aber nicht tut.</p>
<p>hat jemand eine idee wie ich das bewerkstelligen könnte!?</p>
<p>btw: gibts evtl. eine bessere alternative zu GetAsyncKeyState() um die Maustasten abzufragen!?</p>
<p>danke schon mal im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76634/menüfrage</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 11:43:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76634.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Jun 2004 19:06:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Menüfrage on Sun, 13 Jun 2004 19:06:30 GMT]]></title><description><![CDATA[<p>hi</p>
<p>ich schreib grad ein prog, dass sich über ein Icon im SysTray ( sowas neben der uhr wie bei ICQ ) steuern lassen soll.</p>
<p>ich fang also die nachricht ab die ich bei Shell_NotifyIcon() angeben hab und wenn die rechte maustaste gedrückt is, dann zeig ich per TrackPopupMenu() mein menü an.</p>
<p>hier mal ein wenig code aus meiner nachrichtenprozedur:</p>
<pre><code class="language-cpp">...

case WM_NOTIFYICON:

		if( GetAsyncKeyState( VK_RBUTTON ) )
		{

			POINT p;

			GetCursorPos( &amp;p );

			TrackPopupMenu( hMenu, TPM_LEFTALIGN, p.x, p.y, 0, hWnd, 0 );

		}

		break;

...
</code></pre>
<p>mein problem is, dass, wenn man jetzt neben das menü irgendwo hinklickt, das menü ganz normal wieder verschwinden soll, was es aber nicht tut.</p>
<p>hat jemand eine idee wie ich das bewerkstelligen könnte!?</p>
<p>btw: gibts evtl. eine bessere alternative zu GetAsyncKeyState() um die Maustasten abzufragen!?</p>
<p>danke schon mal im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539445</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539445</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Sun, 13 Jun 2004 19:06:30 GMT</pubDate></item><item><title><![CDATA[Reply to Menüfrage on Sun, 13 Jun 2004 19:07:40 GMT]]></title><description><![CDATA[<p><a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;q135788" rel="nofollow">http://support.microsoft.com/default.aspx?scid=kb;EN-US;q135788</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/539447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539447</guid><dc:creator><![CDATA[*gähn*]]></dc:creator><pubDate>Sun, 13 Jun 2004 19:07:40 GMT</pubDate></item><item><title><![CDATA[Reply to Menüfrage on Sun, 13 Jun 2004 19:09:43 GMT]]></title><description><![CDATA[<p>danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/539451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539451</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Sun, 13 Jun 2004 19:09:43 GMT</pubDate></item></channel></rss>