<?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üeinträge]]></title><description><![CDATA[<p>hallo</p>
<p>ich würde gern wissen wie man bestimmte menüeinträge in einem menu deaktiviert bzw. aktiviert.</p>
<p>danke schonmal ...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/86740/menüeinträge</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 18:26:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/86740.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Sep 2004 08:15:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to menüeinträge on Wed, 22 Sep 2004 08:15:50 GMT]]></title><description><![CDATA[<p>hallo</p>
<p>ich würde gern wissen wie man bestimmte menüeinträge in einem menu deaktiviert bzw. aktiviert.</p>
<p>danke schonmal ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/612581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/612581</guid><dc:creator><![CDATA[r.s.]]></dc:creator><pubDate>Wed, 22 Sep 2004 08:15:50 GMT</pubDate></item><item><title><![CDATA[Reply to menüeinträge on Wed, 22 Sep 2004 08:48:37 GMT]]></title><description><![CDATA[<p>EnableMenuItem</p>
]]></description><link>https://www.c-plusplus.net/forum/post/612621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/612621</guid><dc:creator><![CDATA[CMatt]]></dc:creator><pubDate>Wed, 22 Sep 2004 08:48:37 GMT</pubDate></item><item><title><![CDATA[Reply to menüeinträge on Thu, 23 Sep 2004 06:03:53 GMT]]></title><description><![CDATA[<p>void ChangeMenu(int User)<br />
{<br />
switch(User)<br />
{<br />
case DefaultUser:<br />
if(EnableMenuItem( (HMENU)MAKEINTRESOURCE(IDR_MAIN_MENU),<br />
(UINT)IDM_PROGRAMM_NEW,<br />
MF_GRAYED) == 0xFFFFFFFF)<br />
{<br />
error(&quot;Fehler&quot;);<br />
}<br />
break;<br />
}<br />
}</p>
<p>klappt nich <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>ich habs auch schon mit ModifyItem probiert ...<br />
ich hab auch schon die verschiedensten Variationen ausprobiert - wegen MAKEINTRESOURCE und so ...</p>
<p>mach ich da irgendwas falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/613320</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/613320</guid><dc:creator><![CDATA[r.s.]]></dc:creator><pubDate>Thu, 23 Sep 2004 06:03:53 GMT</pubDate></item><item><title><![CDATA[Reply to menüeinträge on Thu, 23 Sep 2004 08:03:47 GMT]]></title><description><![CDATA[<blockquote>
<p>(HMENU)MAKEINTRESOURCE(IDR_MAIN_MENU)</p>
</blockquote>
<p>Das funktioniert so natürlich nicht - du kannst nicht einfach die ID in ein Menu-Handle casten <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="😉"
    /><br />
An so ein Menu-Handle kommst du, je nach Bedarf, z.B. über GetMenu, LoadMenu, GetSystemMenu o.ä. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/613383</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/613383</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 23 Sep 2004 08:03:47 GMT</pubDate></item><item><title><![CDATA[Reply to menüeinträge on Thu, 23 Sep 2004 08:58:49 GMT]]></title><description><![CDATA[<p>hat geklappt, danke...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/613467</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/613467</guid><dc:creator><![CDATA[r.s.]]></dc:creator><pubDate>Thu, 23 Sep 2004 08:58:49 GMT</pubDate></item><item><title><![CDATA[Reply to menüeinträge on Sat, 16 Oct 2004 13:42:22 GMT]]></title><description><![CDATA[<p>noch eine frage zu dem thema:</p>
<p>wie kann ich einen ganzen menütitel (z.b. &quot;Ansicht&quot;) deaktivieren?<br />
überlegung: er braucht dazu eine ID.<br />
wenn ich ihm aber nun eine ID gebe...</p>
<pre><code class="language-cpp">POPUP &quot;&amp;Ansicht&quot;,ID_ANSICHT
  BEGIN
    MENUITEM &quot;&amp;Raster\tCtrl+R&quot;,ID_ANSICHT_RASTER
    MENUITEM &quot;&amp;Textbox\tCtrl+T&quot;,ID_ANSICHT_TEXTBOX
    MENUITEM &quot;&amp;Einstellungen\tCtrl+P&quot;,ID_ANSICHT_SETTINGS
  END
</code></pre>
<p>...dann wird gar kein menü mehr angezeigt.</p>
<p>einen einzelnen eintrag deaktiviere ich so:</p>
<pre><code class="language-cpp">HMENU hMenu=GetMenu(hAppWnd);
    EnableMenuItem(hMenu,(UINT)ID_ANSICHT_RASTER,MF_GRAYED );
</code></pre>
<p>(funktioniert prima)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/630089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/630089</guid><dc:creator><![CDATA[nate7]]></dc:creator><pubDate>Sat, 16 Oct 2004 13:42:22 GMT</pubDate></item><item><title><![CDATA[Reply to menüeinträge on Sat, 16 Oct 2004 13:45:00 GMT]]></title><description><![CDATA[<p>&quot;Ansicht&quot; ist ja auch kein MENUITEM.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/630095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/630095</guid><dc:creator><![CDATA[MiC++ha]]></dc:creator><pubDate>Sat, 16 Oct 2004 13:45:00 GMT</pubDate></item><item><title><![CDATA[Reply to menüeinträge on Sat, 16 Oct 2004 19:45:20 GMT]]></title><description><![CDATA[<p>hmm.. so wie ich das verstanden habe, ist es sehr wohl ein MenuItem:</p>
<p>MSDN schrieb:</p>
<blockquote>
<p>&quot;A menu bar typically contains menu names, but it can also contain command items. A submenu typically contains command items, but it can also contain items that open nested submenus.<br />
[...]<br />
When the user chooses an enabled menu item, the system sends a command message to the owner window or displays the corresponding submenu, depending on what kind of menu item it is.&quot;</p>
</blockquote>
<p><a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/resources/menus/aboutmenus.asp#menu_items" rel="nofollow">http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/resources/menus/aboutmenus.asp#menu_items</a></p>
<p>habe aber immer noch nicht ganz verstanden, wie ich &quot;Ansicht&quot; grayen kann..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/630374</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/630374</guid><dc:creator><![CDATA[nate7]]></dc:creator><pubDate>Sat, 16 Oct 2004 19:45:20 GMT</pubDate></item><item><title><![CDATA[Reply to menüeinträge on Sat, 16 Oct 2004 20:25:33 GMT]]></title><description><![CDATA[<p>Um das Handle des Bar-Items zu erhalten kannst du auch &quot;GetMenuItemID()&quot; verwenden, aber davon mal abgesehen, hast du in der MSDN zu der EnableMenuItem() Funktion auch folgendes gelesen:</p>
<blockquote>
<p>Remarks</p>
<p>An application must use the MF_BYPOSITION flag to specify the correct menu handle. If the menu handle to the menu bar is specified, the top-level menu item (an item in the menu bar) is affected. To set the state of an item in a drop-down menu or submenu by position, an application must specify the handle to the drop-down menu or submenu.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/630401</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/630401</guid><dc:creator><![CDATA[MiC++ha]]></dc:creator><pubDate>Sat, 16 Oct 2004 20:25:33 GMT</pubDate></item></channel></rss>