<?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[Minimale Fenstergröße nicht unterschreiten...]]></title><description><![CDATA[<p>Hallo,</p>
<p>dies ist mein bisheriger Code:</p>
<pre><code class="language-cpp">void CMiHaHomeIRCView::OnSize(UINT nType, int cx, int cy) 
{
	CFormView::OnSize(nType, cx, cy);
	if(GetSafeHwnd() == 0)
		return;

	ShowScrollBar(SB_BOTH, false); 

	CStatic* pStatic1 = static_cast&lt;CStatic*&gt;(CFormView::GetDlgItem(IDC_STATIC1));
	CStatic* pStatic2 = static_cast&lt;CStatic*&gt;(CFormView::GetDlgItem(IDC_STATIC2));
	CRichEditCtrl* pRichEdit1 = static_cast&lt;CRichEditCtrl*&gt;(CFormView::GetDlgItem(IDC_RICHEDIT1));
	CRichEditCtrl* pRichEdit2 = static_cast&lt;CRichEditCtrl*&gt;(CFormView::GetDlgItem(IDC_RICHEDIT2));
	CRichEditCtrl* pRichEdit3 = static_cast&lt;CRichEditCtrl*&gt;(CFormView::GetDlgItem(IDC_RICHEDIT3));
	CButton* pButton = static_cast&lt;CButton*&gt;(CFormView::GetDlgItem(IDC_BUTTON1));

	if(pStatic1 != 0 &amp;&amp; pStatic2 != 0 &amp;&amp; pRichEdit1 != 0 &amp;&amp; pRichEdit2 != 0 &amp;&amp; pRichEdit3 != 0 &amp;&amp; pButton != 0)
	{
		pStatic1-&gt;MoveWindow(7 + 10, 7, 200, 17);
		pStatic2-&gt;MoveWindow(wRect.right * 7/10 - 7 + 10, 7, 100, 17);
		pRichEdit1-&gt;MoveWindow(wRect.right * 7/10 - 7 + 10, 24, wRect.right - wRect.right * 7/10 - 20, wRect.bottom - 24 - 7 - 17 - 20);
		pRichEdit2-&gt;MoveWindow(7 + 10, 24, wRect.right * 7/10 - 7 - 7, wRect.bottom - 24 - 7 - 17 - 20);
		pRichEdit3-&gt;MoveWindow(7 + 10, wRect.bottom - 17 - 7 - 20, wRect.right - 7 - 100 - 10, 20);
		pButton-&gt;MoveWindow(wRect.right - 100, wRect.bottom - 17 - 7 - 20, 80, 20);
	}
}
</code></pre>
<p>Er macht die Fenstergröße genau so, wie ich es haben will.</p>
<ol>
<li></li>
</ol>
<p>Gehts nicht leichter? Ich werde bald ne ganze Stange an Buttons platzieren...</p>
<ol start="2">
<li></li>
</ol>
<p>Man kann das Fenster bis auf garnix zusammenschrumpfen, es soll eine Minimalgröße geben, wie kriege ich das bewerkstelligt?</p>
<p>MfG MAV</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/47239/minimale-fenstergröße-nicht-unterschreiten</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 10:55:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/47239.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Aug 2003 17:01:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Wed, 27 Aug 2003 17:01:58 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>dies ist mein bisheriger Code:</p>
<pre><code class="language-cpp">void CMiHaHomeIRCView::OnSize(UINT nType, int cx, int cy) 
{
	CFormView::OnSize(nType, cx, cy);
	if(GetSafeHwnd() == 0)
		return;

	ShowScrollBar(SB_BOTH, false); 

	CStatic* pStatic1 = static_cast&lt;CStatic*&gt;(CFormView::GetDlgItem(IDC_STATIC1));
	CStatic* pStatic2 = static_cast&lt;CStatic*&gt;(CFormView::GetDlgItem(IDC_STATIC2));
	CRichEditCtrl* pRichEdit1 = static_cast&lt;CRichEditCtrl*&gt;(CFormView::GetDlgItem(IDC_RICHEDIT1));
	CRichEditCtrl* pRichEdit2 = static_cast&lt;CRichEditCtrl*&gt;(CFormView::GetDlgItem(IDC_RICHEDIT2));
	CRichEditCtrl* pRichEdit3 = static_cast&lt;CRichEditCtrl*&gt;(CFormView::GetDlgItem(IDC_RICHEDIT3));
	CButton* pButton = static_cast&lt;CButton*&gt;(CFormView::GetDlgItem(IDC_BUTTON1));

	if(pStatic1 != 0 &amp;&amp; pStatic2 != 0 &amp;&amp; pRichEdit1 != 0 &amp;&amp; pRichEdit2 != 0 &amp;&amp; pRichEdit3 != 0 &amp;&amp; pButton != 0)
	{
		pStatic1-&gt;MoveWindow(7 + 10, 7, 200, 17);
		pStatic2-&gt;MoveWindow(wRect.right * 7/10 - 7 + 10, 7, 100, 17);
		pRichEdit1-&gt;MoveWindow(wRect.right * 7/10 - 7 + 10, 24, wRect.right - wRect.right * 7/10 - 20, wRect.bottom - 24 - 7 - 17 - 20);
		pRichEdit2-&gt;MoveWindow(7 + 10, 24, wRect.right * 7/10 - 7 - 7, wRect.bottom - 24 - 7 - 17 - 20);
		pRichEdit3-&gt;MoveWindow(7 + 10, wRect.bottom - 17 - 7 - 20, wRect.right - 7 - 100 - 10, 20);
		pButton-&gt;MoveWindow(wRect.right - 100, wRect.bottom - 17 - 7 - 20, 80, 20);
	}
}
</code></pre>
<p>Er macht die Fenstergröße genau so, wie ich es haben will.</p>
<ol>
<li></li>
</ol>
<p>Gehts nicht leichter? Ich werde bald ne ganze Stange an Buttons platzieren...</p>
<ol start="2">
<li></li>
</ol>
<p>Man kann das Fenster bis auf garnix zusammenschrumpfen, es soll eine Minimalgröße geben, wie kriege ich das bewerkstelligt?</p>
<p>MfG MAV</p>
]]></description><link>https://www.c-plusplus.net/forum/post/341819</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/341819</guid><dc:creator><![CDATA[Mis2com]]></dc:creator><pubDate>Wed, 27 Aug 2003 17:01:58 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Wed, 27 Aug 2003 17:12:15 GMT]]></title><description><![CDATA[<ol>
<li>Es gibt da diverse Hilfsklassen (-&gt; <a href="http://codeproject.com" rel="nofollow">codeproject.com</a>)</li>
<li>Ganz einfach: Prüfen ob das Fensterhöhe/-breite kleiner ist als erlaubt und gegebenenfalls auf Minimalgrößen setzen.</li>
</ol>
]]></description><link>https://www.c-plusplus.net/forum/post/341840</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/341840</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Wed, 27 Aug 2003 17:12:15 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Wed, 27 Aug 2003 18:26:00 GMT]]></title><description><![CDATA[<p>Gut dann anders gefragt:<br />
Wie setze ich die Fenstergröße?</p>
<p>Immer wenn ich das versuche macht er anscheinend nur dei Anezige kleiner und an der Stelle zeicznet er dann nix, äh, also welche FUnktion? ^^</p>
<p>MfG MAV</p>
]]></description><link>https://www.c-plusplus.net/forum/post/341922</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/341922</guid><dc:creator><![CDATA[Mis2com]]></dc:creator><pubDate>Wed, 27 Aug 2003 18:26:00 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Wed, 27 Aug 2003 21:57:41 GMT]]></title><description><![CDATA[<p>Hi!<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowmessages/wm_getminmaxinfo.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowmessages/wm_getminmaxinfo.asp</a></p>
<p>GetWindowPlacement auch mal nachschauen - wegen Fensterpos und so</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/342055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/342055</guid><dc:creator><![CDATA[mike84]]></dc:creator><pubDate>Wed, 27 Aug 2003 21:57:41 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Thu, 28 Aug 2003 08:43:28 GMT]]></title><description><![CDATA[<p>Also ich muss sagen zu WM_GETMINMAXINFO oder OnGetMinMaxInfo habe ich mir schon einmal was angeschaut.<br />
Ich gewinne den ersten Eindruck, dass man damit nur die minimalen Daten bekommt aber wie unterdrücke ich die jetzt?<br />
Wenn ich da mit MoveWindow ankomme b´ringt es nichts, das verkleinert zwar den Sichtbereich, auf dem gezeichnet wird, nicht aber das Fenster selber, sodass dann ein Bereich da ist, der garnicht neugezeichnet wird, Ergenis:<br />
Alles was man auch mit anderen Fenstern drübermalt bleibt da so. <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>Desweiteren weiß ich jetzt leider auch nicht wie ich WM_GETMINMAXINFO in der MFC abfragen soll, denn bei den Nachrichtenfunktionen oder Ereignissen finde ich eine solche Konstante nicht. <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>Kann mir jemand ein wenig abhelfen?</p>
<p>MfG MAV</p>
]]></description><link>https://www.c-plusplus.net/forum/post/342295</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/342295</guid><dc:creator><![CDATA[Mis2com]]></dc:creator><pubDate>Thu, 28 Aug 2003 08:43:28 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Thu, 28 Aug 2003 11:26:26 GMT]]></title><description><![CDATA[<p>Hi!<br />
Dann füg folgendes in die Funktion ein:</p>
<pre><code class="language-cpp">lpMMI-&gt;ptMaxTrackSize.x = 600;
lpMMI-&gt;ptMaxTrackSize.y = 600;
lpMMI-&gt;ptMinTrackSize.x = 300;
lpMMI-&gt;ptMinTrackSize.y = 300;
</code></pre>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/342483</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/342483</guid><dc:creator><![CDATA[mike84]]></dc:creator><pubDate>Thu, 28 Aug 2003 11:26:26 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Thu, 28 Aug 2003 11:27:52 GMT]]></title><description><![CDATA[<p>Achja <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="😉"
    /><br />
WM_GETMINMAXINFO musst du nicht händish einfügen - das macht der Klassenassi. Also CMianFrame auswählen und nach WM_GETMINMAXINFO suchen -&gt; Doppelklick -&gt; Code bearbeiten -&gt; Source einfügen <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>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/342485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/342485</guid><dc:creator><![CDATA[mike84]]></dc:creator><pubDate>Thu, 28 Aug 2003 11:27:52 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Thu, 28 Aug 2003 18:19:26 GMT]]></title><description><![CDATA[<p>Hallo.</p>
<p>Danke es klappt nun wunderbar. <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>
<p>Und überhaupt würde ich gerne ein paar Eigenschaften des Fensters verändern.<br />
Wie soll ich das machen, geht das? <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>
<p>Danke schonmal sehr!</p>
<p>MfG MAV</p>
]]></description><link>https://www.c-plusplus.net/forum/post/342836</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/342836</guid><dc:creator><![CDATA[Mis2com]]></dc:creator><pubDate>Thu, 28 Aug 2003 18:19:26 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Thu, 28 Aug 2003 18:42:39 GMT]]></title><description><![CDATA[<p>Mis2com schrieb:</p>
<blockquote>
<p>Und überhaupt würde ich gerne ein paar Eigenschaften des Fensters verändern.</p>
</blockquote>
<p>Na kommt drauf an was du darunter verstehst :p<br />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/342852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/342852</guid><dc:creator><![CDATA[mike84]]></dc:creator><pubDate>Thu, 28 Aug 2003 18:42:39 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Thu, 28 Aug 2003 20:51:26 GMT]]></title><description><![CDATA[<p>Der Rahmen soll z.B. dünner oder so sein!</p>
<p>Mit welchem Code erschaffe ich ein neues Fenster für meine MDI Anwendung? <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>
<p>MfG MAV</p>
]]></description><link>https://www.c-plusplus.net/forum/post/342918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/342918</guid><dc:creator><![CDATA[Mis2com]]></dc:creator><pubDate>Thu, 28 Aug 2003 20:51:26 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Thu, 28 Aug 2003 22:04:22 GMT]]></title><description><![CDATA[<p>Hi!<br />
Das mit der MDI hab ich dir im anderen Thread gepostet und das mit dem Rahmen bin ich teilweise überfragt. Würde mal www.codeproject befragen. Da gabs so sacehn wie skins und so Scahen</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/342940</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/342940</guid><dc:creator><![CDATA[mike84]]></dc:creator><pubDate>Thu, 28 Aug 2003 22:04:22 GMT</pubDate></item><item><title><![CDATA[Reply to Minimale Fenstergröße nicht unterschreiten... on Fri, 29 Aug 2003 09:18:49 GMT]]></title><description><![CDATA[<p>OK, bleibt nurnoch die Frage, wie ich jetzt die Daten, die mir der Dialog gibt, an das Formular weitergeben kann. <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>
<p>MfG MAV</p>
]]></description><link>https://www.c-plusplus.net/forum/post/343117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/343117</guid><dc:creator><![CDATA[Mis2com]]></dc:creator><pubDate>Fri, 29 Aug 2003 09:18:49 GMT</pubDate></item></channel></rss>