<?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[Hauptfenster minimiert sich beim schließen des Dialoges]]></title><description><![CDATA[<p>Der Titel sagt eigentlich alles. Ich habe ein Dialogfenster erstellt (modal), nur wenn ich es schließe Wird das Hauptfenster minimiert, weiß jemand woran das liegen könnte?</p>
<p>DialogProc:</p>
<pre><code class="language-cpp">BOOL CALLBACK ZielPfadProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	LIST_DATEN temp;
	deque&lt;LIST_DATEN&gt;::iterator i;
	switch (msg)
	 {
	 case WM_INITDIALOG:
			//iter = *(deque&lt;LIST_DATEN&gt;::iterator*) lParam;			
			SetDlgItemText(hwnd, IDC_EDT1,&quot;C:\\&quot;);
			return true;
	 case WM_COMMAND:
	    switch (LOWORD(wParam))
	    {
	    case IDC_BTN1:
				i = liste.end();
				i--;
				i-&gt;recvPfad = GetDlgItemStr(hwnd, IDC_EDT1, 255);
				MessageBox(0,i-&gt;recvPfad.c_str(),0,0);
				//*iter = temp;
	      DestroyWindow (hwnd);
	      return true;

	    default:
	       break;
	    }
	    return false;	
	 case WM_CLOSE:
	 case WM_DESTROY:
	    EndDialog (hwnd, 0);
	    return true;
	 }

	return false;
}
</code></pre>
<p>Erstellen des Dialoges:</p>
<pre><code class="language-cpp">DialogBoxParam(hinstance, MAKEINTRESOURCE(IDD_DLG1), GetParent(hwnd), ZielPfadProc,0);
</code></pre>
<p>Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/117362/hauptfenster-minimiert-sich-beim-schließen-des-dialoges</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 18:29:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/117362.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Aug 2005 12:26:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hauptfenster minimiert sich beim schließen des Dialoges on Sat, 06 Aug 2005 12:26:41 GMT]]></title><description><![CDATA[<p>Der Titel sagt eigentlich alles. Ich habe ein Dialogfenster erstellt (modal), nur wenn ich es schließe Wird das Hauptfenster minimiert, weiß jemand woran das liegen könnte?</p>
<p>DialogProc:</p>
<pre><code class="language-cpp">BOOL CALLBACK ZielPfadProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	LIST_DATEN temp;
	deque&lt;LIST_DATEN&gt;::iterator i;
	switch (msg)
	 {
	 case WM_INITDIALOG:
			//iter = *(deque&lt;LIST_DATEN&gt;::iterator*) lParam;			
			SetDlgItemText(hwnd, IDC_EDT1,&quot;C:\\&quot;);
			return true;
	 case WM_COMMAND:
	    switch (LOWORD(wParam))
	    {
	    case IDC_BTN1:
				i = liste.end();
				i--;
				i-&gt;recvPfad = GetDlgItemStr(hwnd, IDC_EDT1, 255);
				MessageBox(0,i-&gt;recvPfad.c_str(),0,0);
				//*iter = temp;
	      DestroyWindow (hwnd);
	      return true;

	    default:
	       break;
	    }
	    return false;	
	 case WM_CLOSE:
	 case WM_DESTROY:
	    EndDialog (hwnd, 0);
	    return true;
	 }

	return false;
}
</code></pre>
<p>Erstellen des Dialoges:</p>
<pre><code class="language-cpp">DialogBoxParam(hinstance, MAKEINTRESOURCE(IDD_DLG1), GetParent(hwnd), ZielPfadProc,0);
</code></pre>
<p>Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/846968</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/846968</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Sat, 06 Aug 2005 12:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Hauptfenster minimiert sich beim schließen des Dialoges on Sat, 06 Aug 2005 12:54:30 GMT]]></title><description><![CDATA[<p>hatte ich auch schonmal, mit WS_POPUP konnte ich es lösen.</p>
<p>aber deine dlgproc sieht eh nicht so gelungen aus. DestroyWindow brauchst du nicht, EndDialog reicht. für WM_DESTROY kannst du auch EndDialog rausnehmen. und der rückgabetyp ist INT_PTR.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/846976</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/846976</guid><dc:creator><![CDATA[use]]></dc:creator><pubDate>Sat, 06 Aug 2005 12:54:30 GMT</pubDate></item><item><title><![CDATA[Reply to Hauptfenster minimiert sich beim schließen des Dialoges on Sat, 06 Aug 2005 16:59:30 GMT]]></title><description><![CDATA[<p>Der Code ist nach dem Vorbild von <a href="http://www.winapi.net" rel="nofollow">www.winapi.net</a>, ich werde das mit WS_POPUP gleich mal ausprobieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/847079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/847079</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Sat, 06 Aug 2005 16:59:30 GMT</pubDate></item><item><title><![CDATA[Reply to Hauptfenster minimiert sich beim schließen des Dialoges on Sat, 06 Aug 2005 17:11:09 GMT]]></title><description><![CDATA[<p>Es liegt nicht an WS_POPUP, aber wenn man WS_DESTROY weglässt und DestroyWindow() durch EndDialog ersetzt, geht es.</p>
<p>thk</p>
]]></description><link>https://www.c-plusplus.net/forum/post/847083</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/847083</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Sat, 06 Aug 2005 17:11:09 GMT</pubDate></item></channel></rss>