<?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[Haeckchen in Menu einfuegen]]></title><description><![CDATA[<p>hallo,<br />
wie kann ich vor einen menupunkt ein haeckchen hinzufuegen?<br />
danke<br />
gruesse</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/149729/haeckchen-in-menu-einfuegen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 03:30:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/149729.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Jun 2006 17:58:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Haeckchen in Menu einfuegen on Thu, 08 Jun 2006 17:58:05 GMT]]></title><description><![CDATA[<p>hallo,<br />
wie kann ich vor einen menupunkt ein haeckchen hinzufuegen?<br />
danke<br />
gruesse</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074051</guid><dc:creator><![CDATA[DZ]]></dc:creator><pubDate>Thu, 08 Jun 2006 17:58:05 GMT</pubDate></item><item><title><![CDATA[Reply to Haeckchen in Menu einfuegen on Thu, 08 Jun 2006 22:35:33 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/menus/menureference/menufunctions/checkmenuitem.asp" rel="nofollow">CheckMenuItem</a> ...wenne das meinst <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>MfG CodeFinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074245</guid><dc:creator><![CDATA[CodeFinder_]]></dc:creator><pubDate>Thu, 08 Jun 2006 22:35:33 GMT</pubDate></item><item><title><![CDATA[Reply to Haeckchen in Menu einfuegen on Fri, 16 Jun 2006 17:31:42 GMT]]></title><description><![CDATA[<p>das geht bei mir irgendwie ned... also das menu habe ich in <strong>rsrc.rc</strong> definiert, und zwar so:</p>
<pre><code>MYMENU MENU
BEGIN
     POPUP &quot;File&quot;
     BEGIN
          MENUITEM &quot;New&quot;,        IDM_NEW
          MENUITEM &quot;Open&quot;,       IDM_OPEN
          MENUITEM &quot;Save&quot;,       IDM_SAVE
          MENUITEM &quot;Save as...&quot;, IDM_SAVEAS
          MENUITEM &quot;Close File&quot;, IDM_CLOSEFILE
          MENUITEM SEPARATOR
          MENUITEM &quot;Exit&quot;,       IDM_EXIT
     END

     POPUP &quot;Format&quot;
     BEGIN
          MENUITEM &quot;Font&quot;,       IDM_FONT
          [b]MENUITEM &quot;Margin&quot;,     IDM_MARGIN[/b]
     END

     POPUP &quot;Help&quot;
     BEGIN
          MENUITEM &quot;About&quot;,      IDM_ABOUT
     END
END
</code></pre>
<p>so, dann in der <strong>WndProc</strong> funktion bei <strong>WM_CREATE</strong>:</p>
<pre><code>HMENU hMenu = LoadMenu( g_hInst, &quot;MYMENU&quot; );
</code></pre>
<p>und schliesslich bei <strong>WM_COMMAND</strong>:</p>
<pre><code>switch( LOWORD(wParam) )
{
        case IDM_MARGIN:
        CheckMenuItem( hMenu, 7, MF_BYPOSITION | MF_CHECKED );
        return 0;
}
</code></pre>
<p>aber das haeckchen geht einfach ned her... ist der code falsch?<br />
danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1079097</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1079097</guid><dc:creator><![CDATA[DZ]]></dc:creator><pubDate>Fri, 16 Jun 2006 17:31:42 GMT</pubDate></item><item><title><![CDATA[Reply to Haeckchen in Menu einfuegen on Fri, 16 Jun 2006 18:17:40 GMT]]></title><description><![CDATA[<p>CheckMenuItem(GetMenu(hwnd),IDM_MARGIN,MF_CHECKED);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1079117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1079117</guid><dc:creator><![CDATA[pla]]></dc:creator><pubDate>Fri, 16 Jun 2006 18:17:40 GMT</pubDate></item><item><title><![CDATA[Reply to Haeckchen in Menu einfuegen on Fri, 16 Jun 2006 18:18:09 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>DZ schrieb:</p>
<blockquote>
<pre><code class="language-cpp">HMENU hMenu = LoadMenu( g_hInst, &quot;MYMENU&quot; );
</code></pre>
</blockquote>
<p>LOL, du musst hMenu als static deklarieren...sonst ist der bei WM_COMMAND ungültig... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Hmm also wenn das n SystemMenü ist solltest du lieber GetMenu() verwenden...<br />
und falls es immer noch nicht funzt: Hast du mal hMenu überpüft (zur Not auch mit GetLastError())?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1079118</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1079118</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Fri, 16 Jun 2006 18:18:09 GMT</pubDate></item><item><title><![CDATA[Reply to Haeckchen in Menu einfuegen on Fri, 16 Jun 2006 18:19:36 GMT]]></title><description><![CDATA[<p>pla schrieb:</p>
<blockquote>
<p>CheckMenuItem(GetMenu(hwnd),IDM_MARGIN,MF_CHECKED);</p>
</blockquote>
<p>Nope, wenn dann so:</p>
<pre><code class="language-cpp">CheckMenuItem(GetMenu(hwnd), IDM_MARGIN, MF_BYCOMMAND | MF_CHECKED);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1079119</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1079119</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Fri, 16 Jun 2006 18:19:36 GMT</pubDate></item></channel></rss>