<?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[CAxDialogImpl als maximiertes Fenster starten]]></title><description><![CDATA[<p>Wie ist das möglich?</p>
<p>Jemand einen Plan? Thx!</p>
<p>Bisher hab ichs so versucht:</p>
<p>Das funktioniert nur so, dass das Fenster zwar die maximale Bildschirmgröße erhaelt, aber es ist trotzdem nicht maximiert:</p>
<pre><code class="language-cpp">CDC screenDC = this-&gt;GetDC();
int iMonitorW = screenDC.GetDeviceCaps(HORZRES); 
int iMonitorH = screenDC.GetDeviceCaps(VERTRES);
MoveWindow(0,0,iMonitorW,iMonitorH);
ModifyStyle(0,WS_MAXIMIZE);
</code></pre>
<p>Dies ändert leider nichts an der Darstellung:</p>
<pre><code class="language-cpp">this-&gt;ShowWindow(SW_SHOWMAXIMIZED);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/204739/caxdialogimpl-als-maximiertes-fenster-starten</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Apr 2026 12:24:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/204739.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Feb 2008 16:11:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CAxDialogImpl als maximiertes Fenster starten on Wed, 06 Feb 2008 16:11:55 GMT]]></title><description><![CDATA[<p>Wie ist das möglich?</p>
<p>Jemand einen Plan? Thx!</p>
<p>Bisher hab ichs so versucht:</p>
<p>Das funktioniert nur so, dass das Fenster zwar die maximale Bildschirmgröße erhaelt, aber es ist trotzdem nicht maximiert:</p>
<pre><code class="language-cpp">CDC screenDC = this-&gt;GetDC();
int iMonitorW = screenDC.GetDeviceCaps(HORZRES); 
int iMonitorH = screenDC.GetDeviceCaps(VERTRES);
MoveWindow(0,0,iMonitorW,iMonitorH);
ModifyStyle(0,WS_MAXIMIZE);
</code></pre>
<p>Dies ändert leider nichts an der Darstellung:</p>
<pre><code class="language-cpp">this-&gt;ShowWindow(SW_SHOWMAXIMIZED);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1450693</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1450693</guid><dc:creator><![CDATA[HelpMe81]]></dc:creator><pubDate>Wed, 06 Feb 2008 16:11:55 GMT</pubDate></item><item><title><![CDATA[Reply to CAxDialogImpl als maximiertes Fenster starten on Thu, 07 Feb 2008 07:54:06 GMT]]></title><description><![CDATA[<p>Da Problem ist, dass erst in DoModal der Dialog angezeigt wird. Er wird normalerweise hidden erzeugt. DoModal verwendet dann SW_SHOWNORMAL.</p>
<p>Du kanst das ändern:<br />
1. Ändere im Ressource Template den Stil auf WS_VISIBLE!<br />
2. In OnInitDialog maximiere das Fenster mit ShowWindow(SW_SHOWMAXIMIZED).</p>
<p>Sollte gehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1450998</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1450998</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 07 Feb 2008 07:54:06 GMT</pubDate></item></channel></rss>