<?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[Dialogfenster]]></title><description><![CDATA[<p>hallo ersteinmal zusammen,<br />
seit kurzen arbeite ich mit fenster und taste mich grade in dialoge .rc - dateien herein. ich habe folgenden quellcode:<br />
Main:</p>
<pre><code class="language-cpp">/*
 * =====================================================================
 *
 *         Dateiname:  main.cpp
 *
 *      Beschreibung:  Arbeiten mit einem Dialogfenster
 *
 *    Versionsnummer:  1
 *        erzeugt am:  28.09.2004 08:32:00 Westeuropäische Normalzeit
 *    Fortschritt-Nr:  1
 *          Compiler:  
 *
 *             Autor:  
 *          Umgebung:  Home
 *
 * Änderungshistorie:  NR WER DATUM----- BESCHREIBUNG
 *                     01 tsd 28.09.2004 Erstellen der Grundlagen
 *						
 *
 * =====================================================================
 */

 // #####   HEADERDATEI INCLUDES   ######################################
#include	&lt;Windows.h&gt;
#include	&quot;Resource.h&quot;

// #####   FUNKTIONS-DEKLARATIONEN   ####################################
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
INT_PTR CALLBACK WndProc(HWND hwnd, UINT uiMessage, WPARAM wParam, LPARAM lParam);

// #####   GLOBALE-DEKLARATIONEN   ######################################

// #####   FUNTIONSRUMPF	#############################################

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	DialogBox(hInstance,MAKEINTRESOURCE(ID_Dialog),NULL,WndProc);
	return 0;
}

INT_PTR CALLBACK WndProc(HWND hWnd, UINT uiMessage, WPARAM wParam, LPARAM lParam)
{
	switch(uiMessage)
	{
   		case WM_DESTROY:
			PostQuitMessage(0);
			return (0);

		default:
      		return DefWindowProc(hWnd, uiMessage,wParam, lParam);
   }
}
</code></pre>
<pre><code class="language-cpp">//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Dialog.rc
//

#define ID_Dialog                       7

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        103
#define _APS_NEXT_COMMAND_VALUE         40001
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif
</code></pre>
<p>Leider kann ich mit dem Fenster, welches aus einem Abbrechen und OK Button besteht nichts machen. Weder verschieden, Größe verändern noch normal schließen.<br />
Schließen ist nur möglich über den die Symbolleiste mit der rechten Maustaste und schließen. Auch beim überdecken des Fensters wird es nicht erneuert.<br />
Bis jetzt dachte ich, das sich so genannte Templatefenster immer wieder selber auf bauen!</p>
<p>Wenn jemand meinenn Fehler kennt, bitte antworte doch eben</p>
<p>Mit freundlichen Grüßen</p>
<p>Der Tim <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>
]]></description><link>https://www.c-plusplus.net/forum/topic/87629/dialogfenster</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 03:36:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/87629.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Oct 2004 21:20:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dialogfenster on Fri, 01 Oct 2004 21:20:29 GMT]]></title><description><![CDATA[<p>hallo ersteinmal zusammen,<br />
seit kurzen arbeite ich mit fenster und taste mich grade in dialoge .rc - dateien herein. ich habe folgenden quellcode:<br />
Main:</p>
<pre><code class="language-cpp">/*
 * =====================================================================
 *
 *         Dateiname:  main.cpp
 *
 *      Beschreibung:  Arbeiten mit einem Dialogfenster
 *
 *    Versionsnummer:  1
 *        erzeugt am:  28.09.2004 08:32:00 Westeuropäische Normalzeit
 *    Fortschritt-Nr:  1
 *          Compiler:  
 *
 *             Autor:  
 *          Umgebung:  Home
 *
 * Änderungshistorie:  NR WER DATUM----- BESCHREIBUNG
 *                     01 tsd 28.09.2004 Erstellen der Grundlagen
 *						
 *
 * =====================================================================
 */

 // #####   HEADERDATEI INCLUDES   ######################################
#include	&lt;Windows.h&gt;
#include	&quot;Resource.h&quot;

// #####   FUNKTIONS-DEKLARATIONEN   ####################################
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
INT_PTR CALLBACK WndProc(HWND hwnd, UINT uiMessage, WPARAM wParam, LPARAM lParam);

// #####   GLOBALE-DEKLARATIONEN   ######################################

// #####   FUNTIONSRUMPF	#############################################

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	DialogBox(hInstance,MAKEINTRESOURCE(ID_Dialog),NULL,WndProc);
	return 0;
}

INT_PTR CALLBACK WndProc(HWND hWnd, UINT uiMessage, WPARAM wParam, LPARAM lParam)
{
	switch(uiMessage)
	{
   		case WM_DESTROY:
			PostQuitMessage(0);
			return (0);

		default:
      		return DefWindowProc(hWnd, uiMessage,wParam, lParam);
   }
}
</code></pre>
<pre><code class="language-cpp">//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Dialog.rc
//

#define ID_Dialog                       7

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        103
#define _APS_NEXT_COMMAND_VALUE         40001
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif
</code></pre>
<p>Leider kann ich mit dem Fenster, welches aus einem Abbrechen und OK Button besteht nichts machen. Weder verschieden, Größe verändern noch normal schließen.<br />
Schließen ist nur möglich über den die Symbolleiste mit der rechten Maustaste und schließen. Auch beim überdecken des Fensters wird es nicht erneuert.<br />
Bis jetzt dachte ich, das sich so genannte Templatefenster immer wieder selber auf bauen!</p>
<p>Wenn jemand meinenn Fehler kennt, bitte antworte doch eben</p>
<p>Mit freundlichen Grüßen</p>
<p>Der Tim <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>
]]></description><link>https://www.c-plusplus.net/forum/post/619144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/619144</guid><dc:creator><![CDATA[Der Dude]]></dc:creator><pubDate>Fri, 01 Oct 2004 21:20:29 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfenster on Fri, 01 Oct 2004 21:42:28 GMT]]></title><description><![CDATA[<p>&quot;Although the dialog box procedure is similar to a window procedure, it must not call the DefWindowProc function to process unwanted messages. Unwanted messages are processed internally by the dialog box window procedure.&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/619150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/619150</guid><dc:creator><![CDATA[0rp]]></dc:creator><pubDate>Fri, 01 Oct 2004 21:42:28 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfenster on Sat, 02 Oct 2004 06:22:07 GMT]]></title><description><![CDATA[<p>also muss ich jetzt erst alles ausprogrammieren?<br />
leider verstehe ichn nicht, wieso ich noch niemals das fenster verschieben kann <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>mfg der tim <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>
]]></description><link>https://www.c-plusplus.net/forum/post/619213</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/619213</guid><dc:creator><![CDATA[Der Tim]]></dc:creator><pubDate>Sat, 02 Oct 2004 06:22:07 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfenster on Sat, 02 Oct 2004 07:30:50 GMT]]></title><description><![CDATA[<p>Weil, wie in der MSDN steht (und Dir von 0rp zitiert wurde), nicht behandelte Nachrichten nicht an die DefWndProc geleitet werden <strong>dürfen</strong>! Und genau das tust Du...</p>
<p>Schau Dir <a href="http://www.winapi.net/index.php?inhalt=tipp2" rel="nofollow">WinAPI.net: Gerüst für einen modalen Dialog</a> an, wie eine DialogProzedur auszusehen hat...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/619222</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/619222</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Sat, 02 Oct 2004 07:30:50 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfenster on Sat, 02 Oct 2004 08:14:16 GMT]]></title><description><![CDATA[<p>danke <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/619231</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/619231</guid><dc:creator><![CDATA[der tim]]></dc:creator><pubDate>Sat, 02 Oct 2004 08:14:16 GMT</pubDate></item></channel></rss>