<?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[bei ChildFrame Rahmen weg machen]]></title><description><![CDATA[<p>Hi!</p>
<p>Ne ganz blöde Frage: Habe in meiner MDI Anwendung ein FormView drin. Nun hat dieses ClientFrame aber immer so einen eingesunkenen Rahmen drum herum. Wie bekomme ich den weg, so dass das ganze dann wie ein normales Dialogfenster aussieht?</p>
<p>mfg,<br />
Bloops</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/49978/bei-childframe-rahmen-weg-machen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 22:24:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/49978.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Sep 2003 09:21:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bei ChildFrame Rahmen weg machen on Thu, 25 Sep 2003 09:21:17 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Ne ganz blöde Frage: Habe in meiner MDI Anwendung ein FormView drin. Nun hat dieses ClientFrame aber immer so einen eingesunkenen Rahmen drum herum. Wie bekomme ich den weg, so dass das ganze dann wie ein normales Dialogfenster aussieht?</p>
<p>mfg,<br />
Bloops</p>
]]></description><link>https://www.c-plusplus.net/forum/post/360151</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/360151</guid><dc:creator><![CDATA[Bloops]]></dc:creator><pubDate>Thu, 25 Sep 2003 09:21:17 GMT</pubDate></item><item><title><![CDATA[Reply to bei ChildFrame Rahmen weg machen on Thu, 25 Sep 2003 09:45:36 GMT]]></title><description><![CDATA[<p>Hier meine Lösung, vielleicht nicht elegant, aber sie funktioniert:</p>
<pre><code class="language-cpp">BOOL CBasisChildFrame::PreCreateWindow(CREATESTRUCT&amp; cs)
{
	// Das Fenster muss maximiert sein!!!
	cs.style = WS_CHILD | WS_VISIBLE;

	if( !CMDIChildWnd::PreCreateWindow(cs) )
		return FALSE;

	return TRUE;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/360174</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/360174</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Thu, 25 Sep 2003 09:45:36 GMT</pubDate></item><item><title><![CDATA[Reply to bei ChildFrame Rahmen weg machen on Thu, 25 Sep 2003 10:12:07 GMT]]></title><description><![CDATA[<p>Hmm... das klappt nicht... Ich habe immer noch diesen abgesenkten Rahmen da drum herum <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":/"
      alt="😕"
    /> Eigentlich bräuchte ich ja das hier, aber auch hier bleibt der Rahmen:</p>
<pre><code class="language-cpp">cs.style = WS_OVERLAPPEDWINDOW;
</code></pre>
<p>Aber elegant finde ich deine Lösung schon, wenn sie klappen würde. Was hat eigentlich dein &quot;Muss maximiert sein!!!&quot; zu bedeuten? Vielleicht bin ich auch einfach zu blöd. Jemand noch eine andere Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/360204</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/360204</guid><dc:creator><![CDATA[Bloops]]></dc:creator><pubDate>Thu, 25 Sep 2003 10:12:07 GMT</pubDate></item><item><title><![CDATA[Reply to bei ChildFrame Rahmen weg machen on Thu, 25 Sep 2003 11:03:42 GMT]]></title><description><![CDATA[<p>Okay, wer lesen kann ist klar im Vorteil:<br />
Ich habe dir nur die Hälfte der Funktion geschickt, der andere Teil ist wohl eher der, der dich interessiert.</p>
<p>Ganz grosses Sorry!</p>
<p>Hier jetzt die komplette Funktion:</p>
<pre><code class="language-cpp">BOOL CBasisChildFrame::PreCreateWindow(CREATESTRUCT&amp; cs)
{
	// ZU ERLEDIGEN: Ändern Sie hier die Fensterklasse oder das Erscheinungsbild, indem Sie
	//  CREATESTRUCT cs modifizieren.

/*	CWnd* pMainWnd = AfxGetMainWnd();
	ASSERT(pMainWnd);
	if (!pMainWnd)
	{
		return FALSE;
	}

	CClientDC dc(pMainWnd);
	int nXRes = dc.GetDeviceCaps(HORZRES);
	int nYRes = dc.GetDeviceCaps(VERTRES);

	cs.cx = nXRes;
	cs.cy = nYRes;
	// Position (-2,-2) damit man die hässliche schwarze Kante nicht sieht.
	cs.x  = -2;
	cs.y  = -2;
*/
	// Das Fenster muss maximiert bleiben!!!
	cs.style = WS_CHILD | WS_VISIBLE;

	if( !CMDIChildWnd::PreCreateWindow(cs) )
		return FALSE;

	return TRUE;
}
</code></pre>
<p>Das ist wirklich viel getrickst. Ich glaube, der abgesenkte Rahmen ist das, was ich hier &quot;schwarze Kante&quot; nenne.</p>
<p>Ich habe bei Rahmen gleich an den normalen &quot;Fensterrahmen&quot; gedacht.</p>
<p>Achtung, die Lösung ist nur mit maximiertem MDI-Fenster getestet.</p>
<p>Hoffe, das ich diesmal besser geholfen habe. <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/360232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/360232</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Thu, 25 Sep 2003 11:03:42 GMT</pubDate></item><item><title><![CDATA[Reply to bei ChildFrame Rahmen weg machen on Thu, 25 Sep 2003 11:39:04 GMT]]></title><description><![CDATA[<p>Hm... aber nur maximiert bringt mir nichts...<br />
Ich dachte eher so an folgendes:</p>
<p>mike84 schrieb:</p>
<blockquote>
<p>Hi!<br />
Ich hoffe ich habe dich richtig verstanden.</p>
<pre><code class="language-cpp">BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
// TODO: Speziellen Code hier einfügen und/oder Basisklasse aufrufen
if (!CFrameWnd::OnCreateClient(lpcs, pContext))
   return FALSE;

GetDlgItem (AFX_IDW_PANE_FIRST)-&gt;ModifyStyleEx(WS_EX_CLIENTEDGE, 0, SWP_FRAMECHANGED);

   return TRUE;
}
</code></pre>
<p>OnCreateClient Per klassenassi einfügen</p>
<p>mfg</p>
</blockquote>
<p>Aber das ist halt für SDI und mit MDI klappt das nicht und ich habe keine Ahnung, wie man das verändern muss...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/360275</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/360275</guid><dc:creator><![CDATA[Bloops]]></dc:creator><pubDate>Thu, 25 Sep 2003 11:39:04 GMT</pubDate></item><item><title><![CDATA[Reply to bei ChildFrame Rahmen weg machen on Thu, 25 Sep 2003 12:04:19 GMT]]></title><description><![CDATA[<p>Ah! Hilfe, es klappt doch bestens... Blöd wie ich bin hatte ich das in die MainFrame-Klasse und nicht in die ChildFrame-Klasse eingebunden...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/360300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/360300</guid><dc:creator><![CDATA[Bloops]]></dc:creator><pubDate>Thu, 25 Sep 2003 12:04:19 GMT</pubDate></item></channel></rss>