<?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[Dialogbasierendes Programm - Dialog versteckt aufrufen?]]></title><description><![CDATA[<p>Hallo.<br />
Folgender Code, um ein dialogbasierendes Programm zu bekommen:</p>
<pre><code class="language-cpp">int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	return DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG), NULL, DialogProc); // Dialog anzeigen
}
</code></pre>
<p>Das Programm öffnet also ein Dialogbox.<br />
Wie kann ich das hier anstellen, dass das Programm versteckt (beispielsweise mit SW_HIDE) aufgerufen wird? (Soll kein Virus oder ähnliches werden, es liegt ja auch im SysTray).<br />
Das war mit SW_HIDE immer ganz einfach, als ich nicht-dialogfeldbasierende Programme geschrieben habe. Da habe ich CreateWindow einfach mit SW_HIDE aufgerufen, aber das kann ich ja im moment bei DialogBox() nicht...... :-S</p>
<p>Danke schonmal!!!<br />
Der Chris</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/123780/dialogbasierendes-programm-dialog-versteckt-aufrufen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 05:07:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123780.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Oct 2005 20:15:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dialogbasierendes Programm - Dialog versteckt aufrufen? on Wed, 19 Oct 2005 20:15:55 GMT]]></title><description><![CDATA[<p>Hallo.<br />
Folgender Code, um ein dialogbasierendes Programm zu bekommen:</p>
<pre><code class="language-cpp">int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	return DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG), NULL, DialogProc); // Dialog anzeigen
}
</code></pre>
<p>Das Programm öffnet also ein Dialogbox.<br />
Wie kann ich das hier anstellen, dass das Programm versteckt (beispielsweise mit SW_HIDE) aufgerufen wird? (Soll kein Virus oder ähnliches werden, es liegt ja auch im SysTray).<br />
Das war mit SW_HIDE immer ganz einfach, als ich nicht-dialogfeldbasierende Programme geschrieben habe. Da habe ich CreateWindow einfach mit SW_HIDE aufgerufen, aber das kann ich ja im moment bei DialogBox() nicht...... :-S</p>
<p>Danke schonmal!!!<br />
Der Chris</p>
]]></description><link>https://www.c-plusplus.net/forum/post/896552</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/896552</guid><dc:creator><![CDATA[ChrisK]]></dc:creator><pubDate>Wed, 19 Oct 2005 20:15:55 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogbasierendes Programm - Dialog versteckt aufrufen? on Wed, 19 Oct 2005 20:31:56 GMT]]></title><description><![CDATA[<p>DialogBox nicht aufrufen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/896559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/896559</guid><dc:creator><![CDATA[ganz einfach]]></dc:creator><pubDate>Wed, 19 Oct 2005 20:31:56 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogbasierendes Programm - Dialog versteckt aufrufen? on Wed, 19 Oct 2005 20:41:26 GMT]]></title><description><![CDATA[<p>wie wärs mit</p>
<pre><code>ShowWindow(hDlg, SW_HIDE);
</code></pre>
<p>in WM_INITDIALOG? wobei sich mir der Sinn dieser Maßnahme nicht wirklich erschließt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/896570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/896570</guid><dc:creator><![CDATA[svenson]]></dc:creator><pubDate>Wed, 19 Oct 2005 20:41:26 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogbasierendes Programm - Dialog versteckt aufrufen? on Sun, 23 Oct 2005 15:15:20 GMT]]></title><description><![CDATA[<p>hi, sorry komm jetzt erst zum schreiben...<br />
also es ist so, aufrufen mag ich das dialog auf jeden fall, weil es im hintergrund laufen muss und es auf klicks etc reagieren muss (z.b rechte maustaste auf systray icon).<br />
ShowDialog(hDlg, SW_HIDE habe ich in INITDIALOG auch probiert. aber da schreint da schlicht weg nicht zu funktionieren, denn es bleibt einfach sichtbar.</p>
<p>was meint ihr?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/899375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/899375</guid><dc:creator><![CDATA[ChrisK]]></dc:creator><pubDate>Sun, 23 Oct 2005 15:15:20 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogbasierendes Programm - Dialog versteckt aufrufen? on Sun, 23 Oct 2005 17:09:02 GMT]]></title><description><![CDATA[<p>DialogBox erstellt ja einen modalen Dialog und der wird immer angezeigt. Bei einem nicht modalen Dialog könntest du einfach WS_VISIBLE weglassen.<br />
Also CreateDialogParam benutzen und noch ne kleine Nachrichtenschleife drunter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/899462</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/899462</guid><dc:creator><![CDATA[D*niel *chumann]]></dc:creator><pubDate>Sun, 23 Oct 2005 17:09:02 GMT</pubDate></item></channel></rss>