<?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[xmax??]]></title><description><![CDATA[<p>Hallo.</p>
<p>Wie kann ich die gesammte Länge und Breite eines Bildschirms nutzen?? (<strong>x_max</strong> oder so vielleicht??)</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/5744/xmax</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 13:41:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/5744.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 May 2003 20:11:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to xmax?? on Wed, 07 May 2003 20:11:00 GMT]]></title><description><![CDATA[<p>Hallo.</p>
<p>Wie kann ich die gesammte Länge und Breite eines Bildschirms nutzen?? (<strong>x_max</strong> oder so vielleicht??)</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27935</guid><dc:creator><![CDATA[goag]]></dc:creator><pubDate>Wed, 07 May 2003 20:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to xmax?? on Wed, 07 May 2003 20:42:00 GMT]]></title><description><![CDATA[<p>Moin,<br />
so wie ich dich verstanden hab, willst du eine Anwendung schreiben, die sich automatisch auf die breite des Bildschirms einstellt.<br />
und das geht z.b. so:</p>
<pre><code class="language-cpp">CRect rectOrginal;
GetClientRect(&amp;rectOrginal);
ShowWindow(SW_SHOWMAXIMIZED); //Fenster maximieren um gesamtgröe ermitteln
CRect rectGesamt;
GetClientRect(&amp;rectGesamt);
SetWindowPos(NULL, 0,0,rect.Width(),rectOrginal.rect.Height(), NULL);
</code></pre>
<p>Das Programm wird jetzt ganz oben auf dem Bildschirm mit der Orginal Höhe und maximaler Breite angezeigt.</p>
<p>Einziger haken der Sache, beim Programmstart flimmert das Programm einmal über den ganzen Bildschirm es ist auch nicht die eleganteste Lösung, aber sie funktioniert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27936</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27936</guid><dc:creator><![CDATA[Emperor_L0ser]]></dc:creator><pubDate>Wed, 07 May 2003 20:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to xmax?? on Thu, 08 May 2003 06:43:00 GMT]]></title><description><![CDATA[<p>@Emperor_LOser<br />
Woher hast Du denn nun diesen Code wieder?</p>
<blockquote>
<p>Einziger haken der Sache, beim Programmstart flimmert das Programm einmal über den ganzen Bildschirm es ist auch nicht die eleganteste Lösung, aber sie funktioniert.</p>
</blockquote>
<p>Zweiter Haken ist ausserdem, dass Du Dir die Clientgrösse des Fensters holst, und damit die Fenstergrösse setzt.</p>
<p>Fazit: Schmeiss den Code weg. Hier im Forum gibts auch genug Beiträge, wie man wirklich die Screengrösse ermittelt!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27937</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27937</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Thu, 08 May 2003 06:43:00 GMT</pubDate></item><item><title><![CDATA[Reply to xmax?? on Thu, 08 May 2003 16:45:00 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/638">@RenéG</a><br />
Halo?<br />
Ich weiss ja nicht ob du den ganzen code gesehen hast</p>
<blockquote>
<p>Original erstellt von Emperor_L0ser:<br />
**Moin,<br />
[code type=&quot;C++&quot;]<br />
ShowWindow(SW_SHOWMAXIMIZED); //Fenster maximieren um gesamtgröe ermitteln<br />
**</p>
</blockquote>
<p>aber mit der Zeile wird die Clinetgröße gleich der Auflösung und damit funktioniert es.<br />
Das es nicht elegant hab ich ja schon gesagt. Ich weiss aber auch das es funktioniert, da ich es mal in nem test-programm benutzt hab.</p>
<p>Aber wie wärs wenn Mr. Oberschlau mal anfängt ne lösung zu präsentieren und nicht nur sagt wie es nicht zu machen ist.</p>
<p>[ Dieser Beitrag wurde am 08.05.2003 um 18:48 Uhr von <strong>Emperor_L0ser</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27938</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27938</guid><dc:creator><![CDATA[Emperor_L0ser]]></dc:creator><pubDate>Thu, 08 May 2003 16:45:00 GMT</pubDate></item><item><title><![CDATA[Reply to xmax?? on Thu, 08 May 2003 19:52:00 GMT]]></title><description><![CDATA[<p>Ganz verstehe ich deine Code auch nicht.<br />
Warum willst du das Fenster auf MAX Bildschirm setzten<br />
SetWindowPos(NULL, 0,0,rect.Width(),rectOrginal.rect.Height(), NULL);</p>
<p>Wenn du es mit<br />
ShowWindow(SW_SHOWMAXIMIZED);</p>
<p>Schon gemacht hast</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27939</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27939</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Thu, 08 May 2003 19:52:00 GMT</pubDate></item><item><title><![CDATA[Reply to xmax?? on Fri, 09 May 2003 06:56:00 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/2202">@Emperor_L0ser</a></p>
<p>Nein, es ist wohl eher so, dass Du nicht verstanden hast, was ich geschrieben habe!<br />
Du holst Dir mit GetClientRect die Clientkoordinaten, welche aufgrund des Rahmens und möglicherweise der Titelleiste, die das Fenster besitzt, IMMER KLEINER als das wirkliche Fenster ist.<br />
Und danach setzt Du mit diesen Koordinaten die Grösse des Fensters. Da das Fenster an Position (0,0) gesetzt wird, entsteht damit ein Abstand von mind. 4 Pixeln an der unteren und rechten Seite zum Screenrand.</p>
<p>Wenn man den Clientbereich auf Screen vergrössern will, muss man nur mit ShowWindow(SW_SHOWMAXIMIZED) das Fenster maximieren und dann mit ModifyStyle( WS_CAPTION|WS_THCIKFRAME, 0) Rahmen und Titelleiste löschen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27940</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27940</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Fri, 09 May 2003 06:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to xmax?? on Fri, 09 May 2003 07:03:00 GMT]]></title><description><![CDATA[<p>Ich rufe SetWindowPos auf, da goag ja nur die Horizantale aufs maximum haben will und nicht den ganzen Bildschirm ausfüllen will</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27941</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27941</guid><dc:creator><![CDATA[Emperor_L0ser@school]]></dc:creator><pubDate>Fri, 09 May 2003 07:03:00 GMT</pubDate></item><item><title><![CDATA[Reply to xmax?? on Fri, 09 May 2003 07:09:00 GMT]]></title><description><![CDATA[<blockquote>
<p>Wie kann ich die gesammte Länge und Breite eines Bildschirms nutzen??</p>
</blockquote>
<p>Bitte richtig lesen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27942</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Fri, 09 May 2003 07:09:00 GMT</pubDate></item><item><title><![CDATA[Reply to xmax?? on Fri, 09 May 2003 15:34:00 GMT]]></title><description><![CDATA[<p>mein vorhergehender beitrag ging an unix-tom, dein beitrag stand noch nicht auf der seite, als ich meinen zu schreiben anfing.<br />
ok, habs jetzt auch verstanden was du meinst, aber warum schreibst du das nicht gleich das der rahmen nicht zum clientbereich gehört, bisher hatte ich das jedenfalls angenommen und auch noch keine probleme damit gehabt.</p>
<p>und eine sache steht immer noch aus. deine lösung dazu <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>
]]></description><link>https://www.c-plusplus.net/forum/post/27943</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27943</guid><dc:creator><![CDATA[Emperor_L0ser]]></dc:creator><pubDate>Fri, 09 May 2003 15:34:00 GMT</pubDate></item><item><title><![CDATA[Reply to xmax?? on Mon, 12 May 2003 06:18:00 GMT]]></title><description><![CDATA[<blockquote>
<p>und eine sache steht immer noch aus. deine lösung dazu</p>
</blockquote>
<p>Sihe mein vorletzter Beitrag</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27944</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Mon, 12 May 2003 06:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to xmax?? on Mon, 12 May 2003 07:43:00 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CWnd* desktop=GetDesktopWindow( );
CRect desktoprechteck;
desktop-&gt;GetWindowRect(&amp;desktoprechteck);
// Jetzt hast Du Breite und Höhe:
int breite=desktoprechteck.right;
int hoehe=desktoprechteck.bottom;
//oder gleich die Fenstergröße setzen:
MoveWindow(&amp;desktoprechteck);
</code></pre>
<p><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/27945</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27945</guid><dc:creator><![CDATA[Didi]]></dc:creator><pubDate>Mon, 12 May 2003 07:43:00 GMT</pubDate></item></channel></rss>