<?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[CStatic kopieren]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe in einer MFC Anwendung ein CStatic Element. Dieses möchte ich nun komplett kopieren. Ich benötige also nochmal ein Objekt der selben Klasse, alles was ich ändern möchte ist dann die Position des neuen Objekts.</p>
<p>Wie kann ich sowas machen???</p>
<p>ciao Micha</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/6323/cstatic-kopieren</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 13:30:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/6323.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Jun 2003 05:06:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CStatic kopieren on Sun, 22 Jun 2003 05:06:00 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe in einer MFC Anwendung ein CStatic Element. Dieses möchte ich nun komplett kopieren. Ich benötige also nochmal ein Objekt der selben Klasse, alles was ich ändern möchte ist dann die Position des neuen Objekts.</p>
<p>Wie kann ich sowas machen???</p>
<p>ciao Micha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30663</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30663</guid><dc:creator><![CDATA[m-schmidt]]></dc:creator><pubDate>Sun, 22 Jun 2003 05:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to CStatic kopieren on Mon, 23 Jun 2003 06:38:00 GMT]]></title><description><![CDATA[<p>1. Text des Statics holen<br />
2. Fensterstile holen<br />
3. mit GetClassLong alle benötigten Klasseneigenschaften holen<br />
4. neues Static auf Basis des gespeicherten Atoms anlegen<br />
5. Text setzen<br />
6. Fensterstile setzen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30664</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30664</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Mon, 23 Jun 2003 06:38:00 GMT</pubDate></item><item><title><![CDATA[Reply to CStatic kopieren on Mon, 23 Jun 2003 19:52:00 GMT]]></title><description><![CDATA[<p>Hallo Rene,</p>
<p>danke für deine Antwort. Leider ist mir das jedoch noch net so ganz klar.</p>
<p>Wie ich den Text und die Fensterstile hole, weiß ich noch. Aber dann geht es schon los. Von welcher Klasse kann ich denn das GetClassLong aufrufen?? Also CStatic scheint das bei mir net zu kennen. Und wie kann ich denn dann das neue Static mit dem Atom anlegen???</p>
<p>Ich bin noch ein ziemlicher Anfänger in der ganzen Sache. Da verwirrt mich das jetzt doch sehr. Kannst du mir hier vielleicht mal ein Beispiel dafür posten?</p>
<p>ciao Micha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30665</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30665</guid><dc:creator><![CDATA[m-schmidt]]></dc:creator><pubDate>Mon, 23 Jun 2003 19:52:00 GMT</pubDate></item><item><title><![CDATA[Reply to CStatic kopieren on Tue, 24 Jun 2003 06:03:00 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CStatic static1, static2;
static1.Create( ...);
// Fensterstile holen
// ...
ATOM atom = (ATOM)GetClassLong( static1.m_hWnd, GCW_ATOM);
static2.Create( (LPCTSTR)atom, ..., fensterstile, ...); // Die Create-Funktion der CWnd-Klasse
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/30666</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30666</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Tue, 24 Jun 2003 06:03:00 GMT</pubDate></item><item><title><![CDATA[Reply to CStatic kopieren on Tue, 24 Jun 2003 19:49:00 GMT]]></title><description><![CDATA[<p>ahhh, jetzt hab ich es geschafft.</p>
<p>Vielen Dank für deine Hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/30667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/30667</guid><dc:creator><![CDATA[m-schmidt]]></dc:creator><pubDate>Tue, 24 Jun 2003 19:49:00 GMT</pubDate></item></channel></rss>