<?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[Dummes CreateWindow Problem]]></title><description><![CDATA[<p>Hi!<br />
Ich möchte ein fenster ohne Titelleiste mit Hilfe von CreateWinow erstellen. Normalerweise müsste ich doch einfach 0 bei dwStyle übergeben und WS_CAPTION, wenn ich doch eine Titelleiste möchte. Bei 0 bekomme ich trotzdem eine Titelleiste, obwohl ich gar nicht will! So rufe ich die Funktion auf:</p>
<pre><code>CreateWindow(&quot;Echolon Trainer&quot;,
                       &quot;Titelleiste&quot;,
                       0,
                       CW_USEDEFAULT,          /* X-Position auf dem Monitor */
                       CW_USEDEFAULT,          /* Y-Position auf dem Monitor */
                       CW_USEDEFAULT,          /* Fensterbreite              */
                       CW_USEDEFAULT,          /* Fensterhoehe               */
                       NULL,
                       NULL,
                       hInstance,
                       NULL);
</code></pre>
<p>Was mache ich falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/153971/dummes-createwindow-problem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 09:36:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/153971.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Jul 2006 20:37:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dummes CreateWindow Problem on Sat, 22 Jul 2006 20:37:02 GMT]]></title><description><![CDATA[<p>Hi!<br />
Ich möchte ein fenster ohne Titelleiste mit Hilfe von CreateWinow erstellen. Normalerweise müsste ich doch einfach 0 bei dwStyle übergeben und WS_CAPTION, wenn ich doch eine Titelleiste möchte. Bei 0 bekomme ich trotzdem eine Titelleiste, obwohl ich gar nicht will! So rufe ich die Funktion auf:</p>
<pre><code>CreateWindow(&quot;Echolon Trainer&quot;,
                       &quot;Titelleiste&quot;,
                       0,
                       CW_USEDEFAULT,          /* X-Position auf dem Monitor */
                       CW_USEDEFAULT,          /* Y-Position auf dem Monitor */
                       CW_USEDEFAULT,          /* Fensterbreite              */
                       CW_USEDEFAULT,          /* Fensterhoehe               */
                       NULL,
                       NULL,
                       hInstance,
                       NULL);
</code></pre>
<p>Was mache ich falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1102379</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1102379</guid><dc:creator><![CDATA[Perner]]></dc:creator><pubDate>Sat, 22 Jul 2006 20:37:02 GMT</pubDate></item><item><title><![CDATA[Reply to Dummes CreateWindow Problem on Sun, 23 Jul 2006 13:10:13 GMT]]></title><description><![CDATA[<p>Perner schrieb:</p>
<blockquote>
<p>Hi!<br />
Ich möchte ein fenster ohne Titelleiste mit Hilfe von CreateWinow erstellen. Normalerweise müsste ich doch einfach 0 bei dwStyle übergeben und WS_CAPTION, wenn ich doch eine Titelleiste möchte. Bei 0 bekomme ich trotzdem eine Titelleiste, obwohl ich gar nicht will! So rufe ich die Funktion auf:</p>
</blockquote>
<p>Nop nixos Nullos.</p>
<p>So müsste es gehen:</p>
<pre><code class="language-cpp">CreateWindowEx(0L, TEXT(&quot;Echolon Trainer&quot;),
               TEXT(&quot;Titelleiste&quot;), WS_POPUPWINDOW,
               CW_USEDEFAULT, CW_USEDEFAULT,
               CW_USEDEFAULT, CW_USEDEFAULT,
               NULL, NULL, hInstance, NULL);
</code></pre>
<p>Ich würde dir empfehlen, für eingebundenen Text, das TEXT()-Makro zu verwenden, um UNICODE-Abhängigkeiten zu verhindern. Weiterhin ist vllt. noch die Funktion CreateWindowEx interessant: Die Funktion ist der Funktion CreateWindow() sehr ähnlich besitzt jedoch noch einen Param. mehr (1.) für die 'Extended-Window-Styles'.</p>
<p>EDIT: vertipper</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1102387</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1102387</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 23 Jul 2006 13:10:13 GMT</pubDate></item></channel></rss>