<?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[Probleme mit Resourcen (Menu)]]></title><description><![CDATA[<p>Hallo ich lesen zur Zeit das Buch:<br />
&quot;Windows Programmierung Das Entwicklerhandbuch zur Win32 API&quot; von Charles Petzold</p>
<p>und bin nun zu dem Punkt gekommen bei dem man Menus per Resourcen einbindet.</p>
<p>Ich benutze: &quot;Pelles C for Windows&quot; um meine Resourcen zu erstellen<br />
Und Code::Blocks als IDE</p>
<p>Wenn ich jetzt das Menu:</p>
<pre><code>ICONDEMO MENUEX
BEGIN
  POPUP &quot;Datei&quot;, 0, 0, 0
  BEGIN
    MENUITEM &quot;Neu&quot;, IDM_FILE_NEW, 0, 0
    MENUITEM &quot;Öffnen&quot;, IDM_FILE_OPEN, 0, 0
    MENUITEM &quot;Speichern&quot;, IDM_FILE_SAVE, 0, 0
    MENUITEM &quot;Speichern unter&quot;, IDM_FILE_SAVE_AS, 0, 0
    MENUITEM &quot;&quot;, 0, 0|MFT_SEPARATOR, 0
    MENUITEM &quot;Beenden&quot;, IDM_FILE_CLOSE, 0, 0
  END
  POPUP &quot;Bearbeiten&quot;, 0, 0, 0
  BEGIN
    MENUITEM &quot;Rückgängig&quot;, IDM_EDIT_UNDO, 0, 0
    MENUITEM &quot;&quot;, 0, 0|MFT_SEPARATOR, 0
    MENUITEM &quot;Ausschneiden&quot;, IDM_EDIT_CUT, 0, 0
    MENUITEM &quot;Kopieren&quot;, IDM_EDIT_COPY, 0, 0
    MENUITEM &quot;Einfügen&quot;, IDM_EDIT_PASTE, 0, 0
    MENUITEM &quot;Löschen&quot;, IDM_EDIT_CLEAR, 0, 0
  END
  POPUP &quot;Hintergrund&quot;, 0, 0, 0
  BEGIN
    MENUITEM &quot;Weiß&quot;, IDM_BKGND_WHITE, 0, 0|MFS_CHECKED
    MENUITEM &quot;Hellgrau&quot;, IDM_BKGND_LTGRAY, 0, 0
    MENUITEM &quot;Grau&quot;, IDM_BKGND_GRAY, 0, 0
    MENUITEM &quot;Dunkelgrau&quot;, IDM_BKGND_DKGRAY, 0, 0
    MENUITEM &quot;Schwarz&quot;, IDM_BKGND_BLACK, 0, 0
  END
  POPUP &quot;Timer&quot;, 0, 0, 0
  BEGIN
    MENUITEM &quot;Start&quot;, IDM_TIMER_START, 0, 0
    MENUITEM &quot;Stop&quot;, IDM_TIMER_STOP, 0, 0|MFS_GRAYED
  END
  POPUP &quot;Hilfe&quot;, 0, 0, 0
  BEGIN
    MENUITEM &quot;Hilfe...&quot;, IDM_APP_HELP, 0, 0
    MENUITEM &quot;Info über MENUDEMO&quot;, IDM_APP_ABOUT, 0, 0
  END
END
</code></pre>
<p>mit</p>
<pre><code class="language-cpp">wndclass.lpszMenuName = &quot;ICONDEMO&quot;
</code></pre>
<p>einbinden will klappts nicht</p>
<p>wenn ich jetzt aber<br />
die 2 Zeilen mit &quot;MFT_SEPARATOR&quot; löschen und<br />
&quot;MFS_GRAYED&quot; + &quot;MFS_CHECKED&quot; entfernen</p>
<p>Dann klappts wunderbar aber warum??</p>
<p>Es kommt auch keine Compiler Fehler:</p>
<pre><code>Switching to target: default
Compiling: MENUDEMO.rc
Compiling: MENUDEMO.c
Linking executable: C:\Dokumente und Einstellungen\Pinguin\Eigene Dateien\C-Programme\Win 32 API\Beispiele Buch\Kapitel 10\MENUDEMO\MENUDEMO.exe
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
</code></pre>
<p>Danke schon mal Gast</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/201893/probleme-mit-resourcen-menu</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 01:22:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201893.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Jan 2008 13:31:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit Resourcen (Menu) on Sat, 05 Jan 2008 13:31:51 GMT]]></title><description><![CDATA[<p>Hallo ich lesen zur Zeit das Buch:<br />
&quot;Windows Programmierung Das Entwicklerhandbuch zur Win32 API&quot; von Charles Petzold</p>
<p>und bin nun zu dem Punkt gekommen bei dem man Menus per Resourcen einbindet.</p>
<p>Ich benutze: &quot;Pelles C for Windows&quot; um meine Resourcen zu erstellen<br />
Und Code::Blocks als IDE</p>
<p>Wenn ich jetzt das Menu:</p>
<pre><code>ICONDEMO MENUEX
BEGIN
  POPUP &quot;Datei&quot;, 0, 0, 0
  BEGIN
    MENUITEM &quot;Neu&quot;, IDM_FILE_NEW, 0, 0
    MENUITEM &quot;Öffnen&quot;, IDM_FILE_OPEN, 0, 0
    MENUITEM &quot;Speichern&quot;, IDM_FILE_SAVE, 0, 0
    MENUITEM &quot;Speichern unter&quot;, IDM_FILE_SAVE_AS, 0, 0
    MENUITEM &quot;&quot;, 0, 0|MFT_SEPARATOR, 0
    MENUITEM &quot;Beenden&quot;, IDM_FILE_CLOSE, 0, 0
  END
  POPUP &quot;Bearbeiten&quot;, 0, 0, 0
  BEGIN
    MENUITEM &quot;Rückgängig&quot;, IDM_EDIT_UNDO, 0, 0
    MENUITEM &quot;&quot;, 0, 0|MFT_SEPARATOR, 0
    MENUITEM &quot;Ausschneiden&quot;, IDM_EDIT_CUT, 0, 0
    MENUITEM &quot;Kopieren&quot;, IDM_EDIT_COPY, 0, 0
    MENUITEM &quot;Einfügen&quot;, IDM_EDIT_PASTE, 0, 0
    MENUITEM &quot;Löschen&quot;, IDM_EDIT_CLEAR, 0, 0
  END
  POPUP &quot;Hintergrund&quot;, 0, 0, 0
  BEGIN
    MENUITEM &quot;Weiß&quot;, IDM_BKGND_WHITE, 0, 0|MFS_CHECKED
    MENUITEM &quot;Hellgrau&quot;, IDM_BKGND_LTGRAY, 0, 0
    MENUITEM &quot;Grau&quot;, IDM_BKGND_GRAY, 0, 0
    MENUITEM &quot;Dunkelgrau&quot;, IDM_BKGND_DKGRAY, 0, 0
    MENUITEM &quot;Schwarz&quot;, IDM_BKGND_BLACK, 0, 0
  END
  POPUP &quot;Timer&quot;, 0, 0, 0
  BEGIN
    MENUITEM &quot;Start&quot;, IDM_TIMER_START, 0, 0
    MENUITEM &quot;Stop&quot;, IDM_TIMER_STOP, 0, 0|MFS_GRAYED
  END
  POPUP &quot;Hilfe&quot;, 0, 0, 0
  BEGIN
    MENUITEM &quot;Hilfe...&quot;, IDM_APP_HELP, 0, 0
    MENUITEM &quot;Info über MENUDEMO&quot;, IDM_APP_ABOUT, 0, 0
  END
END
</code></pre>
<p>mit</p>
<pre><code class="language-cpp">wndclass.lpszMenuName = &quot;ICONDEMO&quot;
</code></pre>
<p>einbinden will klappts nicht</p>
<p>wenn ich jetzt aber<br />
die 2 Zeilen mit &quot;MFT_SEPARATOR&quot; löschen und<br />
&quot;MFS_GRAYED&quot; + &quot;MFS_CHECKED&quot; entfernen</p>
<p>Dann klappts wunderbar aber warum??</p>
<p>Es kommt auch keine Compiler Fehler:</p>
<pre><code>Switching to target: default
Compiling: MENUDEMO.rc
Compiling: MENUDEMO.c
Linking executable: C:\Dokumente und Einstellungen\Pinguin\Eigene Dateien\C-Programme\Win 32 API\Beispiele Buch\Kapitel 10\MENUDEMO\MENUDEMO.exe
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
</code></pre>
<p>Danke schon mal Gast</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1431105</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1431105</guid><dc:creator><![CDATA[Unregistrierter Gast]]></dc:creator><pubDate>Sat, 05 Jan 2008 13:31:51 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit Resourcen (Menu) on Sat, 05 Jan 2008 16:04:44 GMT]]></title><description><![CDATA[<p>Unregistrierter Gast schrieb:</p>
<blockquote>
<p>mit</p>
<pre><code class="language-cpp">wndclass.lpszMenuName = &quot;ICONDEMO&quot;
</code></pre>
<p>einbinden will klappts nicht</p>
</blockquote>
<p>also ich mach das immer so:</p>
<pre><code class="language-cpp">wndclass.lpszMenuName = MAKEINTRESOURCE(ICONDEMO);
</code></pre>
<p>und bei MS Resourceeditor heißt es &quot;CHECKED&quot; und &quot;GRAYED&quot;, vieleicht einfach mal probieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1431217</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1431217</guid><dc:creator><![CDATA[MAKEINTRESOURCE]]></dc:creator><pubDate>Sat, 05 Jan 2008 16:04:44 GMT</pubDate></item></channel></rss>