<?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[Problem mit Dialogbox]]></title><description><![CDATA[<p>hallo zusammen.</p>
<p>ich habe mir in einer *.rc datei ein menüund eine dialogbox zusammen gestellt. das<br />
menü funktioniert auch so weit. nun habe ich da im menü Hilfe-&gt;Info über... wenn man darauf klickt, soll die Dialogbox aufgehen. Geht sie aber leider nicht.</p>
<p>Ich weiß einfach nicht warum. das menü geht ja.<br />
wäre toll, wenn mir da jemand helfen könnte.</p>
<p>hier mal meine resource.h</p>
<blockquote>
<p>#define IDM_FILE_NEW 40001<br />
#define IDM_FILE_OPEN 40002<br />
#define IDM_FILE_SAVE 40003<br />
#define IDM_FILE_SAVEAS 40004<br />
#define IDM_APP_EXIT 40005<br />
#define IDM_EDIT_UNDO 40006<br />
#define IDM_EDIT_CUT 40007<br />
#define IDM_EDIT_COPY 40008<br />
#define IDM_EDIT_PASTE 40009<br />
#define IDM_EDIT_CLEAR 40010<br />
#define IDM_BKGND_WHITE 40011<br />
#define IDM_BKGND_LTGRAY 40012<br />
#define IDM_BKGND_GRAY 40013<br />
#define IDM_BKGND_DKGRAY 40014<br />
#define IDM_BKGND_BLACK 40015<br />
#define IDM_TIMER_START 40016<br />
#define IDM_TIMER_STOP 40017<br />
#define IDM_APP_HELP 40018<br />
#define IDM_APP_ABOUT 40019<br />
#define IDC_STATIC -1</p>
</blockquote>
<p>hier mal die *.rc</p>
<blockquote>
<p>//Microsoft Developer Studio generated resource script.<br />
//</p>
<p>#define APSTUDIO_READONLY_SYMBOLS<br />
/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Generated from the TEXTINCLUDE 2 resource.<br />
//<br />
#include &quot;resource.h&quot;<br />
#include &quot;afxres.h&quot;</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
#undef APSTUDIO_READONLY_SYMBOLS</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
// Deutsch (Deutschland) resources</p>
<p>#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)<br />
#ifdef _WIN32<br />
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN<br />
#pragma code_page(1252)<br />
#endif //_WIN32</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Menu<br />
//</p>
<p>MENUNETZPLAN MENU DISCARDABLE<br />
BEGIN<br />
POPUP &quot;&amp;Datei&quot;<br />
BEGIN<br />
MENUITEM &quot;&amp;NEU&quot;, IDM_FILE_NEW<br />
MENUITEM &quot;&amp;Öffnen&quot;, IDM_FILE_OPEN<br />
MENUITEM &quot;&amp;Speichern&quot;, IDM_FILE_SAVE<br />
MENUITEM &quot;Speichern &amp;unter&quot;, IDM_FILE_SAVEAS<br />
MENUITEM SEPARATOR<br />
MENUITEM &quot;B&amp;eenden&quot;, IDM_APP_EXIT<br />
END<br />
POPUP &quot;&amp;Bearbeiten&quot;<br />
BEGIN<br />
MENUITEM &quot;&amp;Widerrufen&quot;, IDM_EDIT_UNDO<br />
MENUITEM SEPARATOR<br />
MENUITEM &quot;A&amp;usschneiden&quot;, IDM_EDIT_CUT<br />
MENUITEM &quot;&amp;Kopieren&quot;, IDM_EDIT_COPY<br />
MENUITEM &quot;E&amp;infügen&quot;, IDM_EDIT_PASTE<br />
MENUITEM &quot;&amp;Löschen&quot;, IDM_EDIT_CLEAR<br />
END<br />
POPUP &quot;&amp;Hintergrund&quot;<br />
BEGIN<br />
MENUITEM &quot;&amp;Weiß&quot;, IDM_BKGND_WHITE, CHECKED<br />
MENUITEM &quot;&amp;Hellgrau&quot;, IDM_BKGND_LTGRAY<br />
MENUITEM &quot;&amp;Grau&quot;, IDM_BKGND_GRAY<br />
MENUITEM &quot;&amp;Dunkelgrau&quot;, IDM_BKGND_DKGRAY<br />
MENUITEM &quot;&amp;Schwarz&quot;, IDM_BKGND_BLACK<br />
END<br />
POPUP &quot;&amp;Timer&quot;<br />
BEGIN<br />
MENUITEM &quot;&amp;Start&quot;, IDM_TIMER_START<br />
MENUITEM &quot;S&amp;top&quot;, IDM_TIMER_STOP, GRAYED<br />
END<br />
POPUP &quot;&amp;Hilfe&quot;<br />
BEGIN<br />
MENUITEM &quot;&amp;Hilfe...&quot;, IDM_APP_HELP<br />
MENUITEM &quot;Info über Netzplan...&quot;, IDM_APP_ABOUT<br />
END<br />
END</p>
<p>#ifdef APSTUDIO_INVOKED<br />
/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// TEXTINCLUDE<br />
//</p>
<p>1 TEXTINCLUDE DISCARDABLE<br />
BEGIN<br />
&quot;resource.h\0&quot;<br />
END</p>
<p>2 TEXTINCLUDE DISCARDABLE<br />
BEGIN<br />
&quot;#include &quot;&quot;resource.h&quot;&quot;\r\n&quot;<br />
&quot;#include &quot;&quot;afxres.h&quot;&quot;\r\n&quot;<br />
&quot;\0&quot;<br />
END</p>
<p>3 TEXTINCLUDE DISCARDABLE<br />
BEGIN<br />
&quot;\r\n&quot;<br />
&quot;\0&quot;<br />
END</p>
<p>#endif // APSTUDIO_INVOKED</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Dialog<br />
//</p>
<p>ABOUTBOX DIALOG DISCARDABLE 0, 0, 330, 205<br />
STYLE WS_CHILD<br />
FONT 8, &quot;MS Sans Serif&quot;<br />
BEGIN<br />
PUSHBUTTON &quot;OK&quot;,IDOK,60,171,65,15<br />
PUSHBUTTON &quot;Abbrechen&quot;,IDCANCEL,173,172,90,18<br />
LTEXT &quot;Info über Version 1.0&quot;,IDC_STATIC,51,39,244,15<br />
LTEXT &quot;(c) by Mustermann&quot;,IDC_STATIC,34,112,150,20<br />
END</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// DESIGNINFO<br />
//</p>
<p>#ifdef APSTUDIO_INVOKED<br />
GUIDELINES DESIGNINFO DISCARDABLE<br />
BEGIN<br />
AboutBox, DIALOG<br />
BEGIN<br />
BOTTOMMARGIN, 16<br />
END<br />
END<br />
#endif // APSTUDIO_INVOKED</p>
<p>#endif // Deutsch (Deutschland) resources<br />
/////////////////////////////////////////////////////////////////////////////</p>
<p>#ifndef APSTUDIO_INVOKED<br />
/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Generated from the TEXTINCLUDE 3 resource.<br />
//</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
#endif // not APSTUDIO_INVOKED</p>
</blockquote>
<p>un hier mal der code aus der *.cpp</p>
<blockquote>
<p>case IDM_APP_HELP:<br />
MessageBox(hWnd, TEXT(&quot;Hilfestellung noch nicht implementiert!&quot;), &quot;Hilfe&quot;, MB_ICONEXCLAMATION | MB_OK);<br />
return 0;</p>
<p>case IDM_APP_\1:<br />
DialogBox(hInstance, TEXT(&quot;About&quot;),hWnd, AboutDlgProc);<br />
break;</p>
<p>BOOL CALLBACK AboutDlgProc(HWND hDlg, UINT message,<br />
WPARAM wParam, LPARAM lParam)<br />
{<br />
switch(message)<br />
{<br />
case WM_INITDIALOG:<br />
return TRUE;</p>
<p>case WM_COMMAND:<br />
switch(LOWORD(wParam))<br />
{<br />
case IDOK:<br />
case IDCANCEL:<br />
EndDialog(hDlg, 0);<br />
return TRUE;<br />
}<br />
break;<br />
}<br />
return FALSE;<br />
}</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/124306/problem-mit-dialogbox</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 07:47:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/124306.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Oct 2005 12:37:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Dialogbox on Wed, 26 Oct 2005 12:37:48 GMT]]></title><description><![CDATA[<p>hallo zusammen.</p>
<p>ich habe mir in einer *.rc datei ein menüund eine dialogbox zusammen gestellt. das<br />
menü funktioniert auch so weit. nun habe ich da im menü Hilfe-&gt;Info über... wenn man darauf klickt, soll die Dialogbox aufgehen. Geht sie aber leider nicht.</p>
<p>Ich weiß einfach nicht warum. das menü geht ja.<br />
wäre toll, wenn mir da jemand helfen könnte.</p>
<p>hier mal meine resource.h</p>
<blockquote>
<p>#define IDM_FILE_NEW 40001<br />
#define IDM_FILE_OPEN 40002<br />
#define IDM_FILE_SAVE 40003<br />
#define IDM_FILE_SAVEAS 40004<br />
#define IDM_APP_EXIT 40005<br />
#define IDM_EDIT_UNDO 40006<br />
#define IDM_EDIT_CUT 40007<br />
#define IDM_EDIT_COPY 40008<br />
#define IDM_EDIT_PASTE 40009<br />
#define IDM_EDIT_CLEAR 40010<br />
#define IDM_BKGND_WHITE 40011<br />
#define IDM_BKGND_LTGRAY 40012<br />
#define IDM_BKGND_GRAY 40013<br />
#define IDM_BKGND_DKGRAY 40014<br />
#define IDM_BKGND_BLACK 40015<br />
#define IDM_TIMER_START 40016<br />
#define IDM_TIMER_STOP 40017<br />
#define IDM_APP_HELP 40018<br />
#define IDM_APP_ABOUT 40019<br />
#define IDC_STATIC -1</p>
</blockquote>
<p>hier mal die *.rc</p>
<blockquote>
<p>//Microsoft Developer Studio generated resource script.<br />
//</p>
<p>#define APSTUDIO_READONLY_SYMBOLS<br />
/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Generated from the TEXTINCLUDE 2 resource.<br />
//<br />
#include &quot;resource.h&quot;<br />
#include &quot;afxres.h&quot;</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
#undef APSTUDIO_READONLY_SYMBOLS</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
// Deutsch (Deutschland) resources</p>
<p>#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)<br />
#ifdef _WIN32<br />
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN<br />
#pragma code_page(1252)<br />
#endif //_WIN32</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Menu<br />
//</p>
<p>MENUNETZPLAN MENU DISCARDABLE<br />
BEGIN<br />
POPUP &quot;&amp;Datei&quot;<br />
BEGIN<br />
MENUITEM &quot;&amp;NEU&quot;, IDM_FILE_NEW<br />
MENUITEM &quot;&amp;Öffnen&quot;, IDM_FILE_OPEN<br />
MENUITEM &quot;&amp;Speichern&quot;, IDM_FILE_SAVE<br />
MENUITEM &quot;Speichern &amp;unter&quot;, IDM_FILE_SAVEAS<br />
MENUITEM SEPARATOR<br />
MENUITEM &quot;B&amp;eenden&quot;, IDM_APP_EXIT<br />
END<br />
POPUP &quot;&amp;Bearbeiten&quot;<br />
BEGIN<br />
MENUITEM &quot;&amp;Widerrufen&quot;, IDM_EDIT_UNDO<br />
MENUITEM SEPARATOR<br />
MENUITEM &quot;A&amp;usschneiden&quot;, IDM_EDIT_CUT<br />
MENUITEM &quot;&amp;Kopieren&quot;, IDM_EDIT_COPY<br />
MENUITEM &quot;E&amp;infügen&quot;, IDM_EDIT_PASTE<br />
MENUITEM &quot;&amp;Löschen&quot;, IDM_EDIT_CLEAR<br />
END<br />
POPUP &quot;&amp;Hintergrund&quot;<br />
BEGIN<br />
MENUITEM &quot;&amp;Weiß&quot;, IDM_BKGND_WHITE, CHECKED<br />
MENUITEM &quot;&amp;Hellgrau&quot;, IDM_BKGND_LTGRAY<br />
MENUITEM &quot;&amp;Grau&quot;, IDM_BKGND_GRAY<br />
MENUITEM &quot;&amp;Dunkelgrau&quot;, IDM_BKGND_DKGRAY<br />
MENUITEM &quot;&amp;Schwarz&quot;, IDM_BKGND_BLACK<br />
END<br />
POPUP &quot;&amp;Timer&quot;<br />
BEGIN<br />
MENUITEM &quot;&amp;Start&quot;, IDM_TIMER_START<br />
MENUITEM &quot;S&amp;top&quot;, IDM_TIMER_STOP, GRAYED<br />
END<br />
POPUP &quot;&amp;Hilfe&quot;<br />
BEGIN<br />
MENUITEM &quot;&amp;Hilfe...&quot;, IDM_APP_HELP<br />
MENUITEM &quot;Info über Netzplan...&quot;, IDM_APP_ABOUT<br />
END<br />
END</p>
<p>#ifdef APSTUDIO_INVOKED<br />
/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// TEXTINCLUDE<br />
//</p>
<p>1 TEXTINCLUDE DISCARDABLE<br />
BEGIN<br />
&quot;resource.h\0&quot;<br />
END</p>
<p>2 TEXTINCLUDE DISCARDABLE<br />
BEGIN<br />
&quot;#include &quot;&quot;resource.h&quot;&quot;\r\n&quot;<br />
&quot;#include &quot;&quot;afxres.h&quot;&quot;\r\n&quot;<br />
&quot;\0&quot;<br />
END</p>
<p>3 TEXTINCLUDE DISCARDABLE<br />
BEGIN<br />
&quot;\r\n&quot;<br />
&quot;\0&quot;<br />
END</p>
<p>#endif // APSTUDIO_INVOKED</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Dialog<br />
//</p>
<p>ABOUTBOX DIALOG DISCARDABLE 0, 0, 330, 205<br />
STYLE WS_CHILD<br />
FONT 8, &quot;MS Sans Serif&quot;<br />
BEGIN<br />
PUSHBUTTON &quot;OK&quot;,IDOK,60,171,65,15<br />
PUSHBUTTON &quot;Abbrechen&quot;,IDCANCEL,173,172,90,18<br />
LTEXT &quot;Info über Version 1.0&quot;,IDC_STATIC,51,39,244,15<br />
LTEXT &quot;(c) by Mustermann&quot;,IDC_STATIC,34,112,150,20<br />
END</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// DESIGNINFO<br />
//</p>
<p>#ifdef APSTUDIO_INVOKED<br />
GUIDELINES DESIGNINFO DISCARDABLE<br />
BEGIN<br />
AboutBox, DIALOG<br />
BEGIN<br />
BOTTOMMARGIN, 16<br />
END<br />
END<br />
#endif // APSTUDIO_INVOKED</p>
<p>#endif // Deutsch (Deutschland) resources<br />
/////////////////////////////////////////////////////////////////////////////</p>
<p>#ifndef APSTUDIO_INVOKED<br />
/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Generated from the TEXTINCLUDE 3 resource.<br />
//</p>
<p>/////////////////////////////////////////////////////////////////////////////<br />
#endif // not APSTUDIO_INVOKED</p>
</blockquote>
<p>un hier mal der code aus der *.cpp</p>
<blockquote>
<p>case IDM_APP_HELP:<br />
MessageBox(hWnd, TEXT(&quot;Hilfestellung noch nicht implementiert!&quot;), &quot;Hilfe&quot;, MB_ICONEXCLAMATION | MB_OK);<br />
return 0;</p>
<p>case IDM_APP_\1:<br />
DialogBox(hInstance, TEXT(&quot;About&quot;),hWnd, AboutDlgProc);<br />
break;</p>
<p>BOOL CALLBACK AboutDlgProc(HWND hDlg, UINT message,<br />
WPARAM wParam, LPARAM lParam)<br />
{<br />
switch(message)<br />
{<br />
case WM_INITDIALOG:<br />
return TRUE;</p>
<p>case WM_COMMAND:<br />
switch(LOWORD(wParam))<br />
{<br />
case IDOK:<br />
case IDCANCEL:<br />
EndDialog(hDlg, 0);<br />
return TRUE;<br />
}<br />
break;<br />
}<br />
return FALSE;<br />
}</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/901143</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901143</guid><dc:creator><![CDATA[ABeginner]]></dc:creator><pubDate>Wed, 26 Oct 2005 12:37:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Dialogbox on Wed, 26 Oct 2005 12:58:44 GMT]]></title><description><![CDATA[<p>Versuche es mal mit folgendem Code:</p>
<pre><code class="language-cpp">DialogBox(hInstance, MAKEINTRESOURCE(ABOUTBOX), hWnd, AboutDlgProc);
</code></pre>
<p>Du Header, in dem du ABOUTBOX definiert hast, musst du dann in dieser .cpp-Datei auch noch einbinden - hab es komischerweise in deiner resource.h nicht gefunden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/901157</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901157</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 26 Oct 2005 12:58:44 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Dialogbox on Wed, 26 Oct 2005 13:04:33 GMT]]></title><description><![CDATA[<p>was muss ich denn dann noch in meine headerdatei eintragen? das kann doch in die resource.h dann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901162</guid><dc:creator><![CDATA[ABeginner]]></dc:creator><pubDate>Wed, 26 Oct 2005 13:04:33 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Dialogbox on Wed, 26 Oct 2005 13:21:30 GMT]]></title><description><![CDATA[<p>Mich wundert, dass das bisher so ohne Probleme geschluckt wird...<br />
Du musst wohl einfach dort noch &quot;#define ABOUTBOX 40020&quot; o.ä. einfügen - bin mir gerade aber auch nicht ganz sicher. Normalerweise hätte die IDE das schon machen sollen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/901179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901179</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 26 Oct 2005 13:21:30 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Dialogbox on Wed, 26 Oct 2005 13:22:08 GMT]]></title><description><![CDATA[<p>so, habs jetzt,musste TEXT(&quot;ABOUTBOX&quot;) schreiben. hatte nur irgenwie verschiede Namen für die Dialogbox genommen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901180</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901180</guid><dc:creator><![CDATA[ABeginner]]></dc:creator><pubDate>Wed, 26 Oct 2005 13:22:08 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Dialogbox on Wed, 26 Oct 2005 14:42:38 GMT]]></title><description><![CDATA[<p>So,</p>
<p>das die Dialogbox geht ja nun auf, nur leiser funktioniert dann irgendwie gar nichts mehr. es lassen sich nirgends Button anklicken und die Dialogbox kann man auch nicht mehr schließen. ich uss die anwendung über den taskmanager killen.</p>
<p>irgendwie steige ich bei dem kram noch nicht wirklich durch.</p>
<p>ch dachte, dass das die dialogbox wie eine messagebox aufgeht, man ok klickt und dann ist sie wieder weg.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901239</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901239</guid><dc:creator><![CDATA[ABeginner]]></dc:creator><pubDate>Wed, 26 Oct 2005 14:42:38 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Dialogbox on Wed, 26 Oct 2005 19:35:09 GMT]]></title><description><![CDATA[<p>Wie sieht denn die dlgfunc der Aboutbox aus?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/901504</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/901504</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 26 Oct 2005 19:35:09 GMT</pubDate></item></channel></rss>