<?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[Warum bekomme ich kein WM_MENUCOMMAND gesendet?]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein Popupmenü erstellt und das soll an das Elternfenster ein WM_MENUCOMMAND senden. Dafür habe ich ein MENUINFO erstellt und das dwStyle Attribut auf MNS_NOTIFYBYPOS gesetzt. Leider wird trotzdem kein WM_MENUCOMMAND gesendet. Warum nicht?</p>
<pre><code class="language-cpp">MENUINFO info;
hMenu = CreatePopupMenu();
GetMenuInfo(hMenu, &amp;info);
info.dwStyle = MNS_NOTIFYBYPOS;
SetMenuInfo(hMenu, &amp;info);
InsertMenu(hMenu, 0, MF_BYPOSITION, 0, &quot;Beenden&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/71392/warum-bekomme-ich-kein-wm_menucommand-gesendet</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 18:47:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/71392.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Apr 2004 08:31:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Warum bekomme ich kein WM_MENUCOMMAND gesendet? on Sun, 18 Apr 2004 08:31:47 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein Popupmenü erstellt und das soll an das Elternfenster ein WM_MENUCOMMAND senden. Dafür habe ich ein MENUINFO erstellt und das dwStyle Attribut auf MNS_NOTIFYBYPOS gesetzt. Leider wird trotzdem kein WM_MENUCOMMAND gesendet. Warum nicht?</p>
<pre><code class="language-cpp">MENUINFO info;
hMenu = CreatePopupMenu();
GetMenuInfo(hMenu, &amp;info);
info.dwStyle = MNS_NOTIFYBYPOS;
SetMenuInfo(hMenu, &amp;info);
InsertMenu(hMenu, 0, MF_BYPOSITION, 0, &quot;Beenden&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/503570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/503570</guid><dc:creator><![CDATA[Keine Ahnung]]></dc:creator><pubDate>Sun, 18 Apr 2004 08:31:47 GMT</pubDate></item><item><title><![CDATA[Reply to Warum bekomme ich kein WM_MENUCOMMAND gesendet? on Mon, 19 Apr 2004 00:07:37 GMT]]></title><description><![CDATA[<p>Spontan würde ich sagen, daß noch das Setzen der Mask fehlt (ungetestet):</p>
<pre><code class="language-cpp">info.fMask = MIM_STYLE;
info.dwStyle = MNS_NOTIFYBYPOS;
SetMenuInfo(hMenu, &amp;info);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/504090</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/504090</guid><dc:creator><![CDATA[-King-]]></dc:creator><pubDate>Mon, 19 Apr 2004 00:07:37 GMT</pubDate></item></channel></rss>