<?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[edit feldneu zeichnen]]></title><description><![CDATA[<p>Hallo , habe mal angefangen mich mit edit boxen zu beschätigen allerdings taucht<br />
folgendes Problem auf.</p>
<pre><code class="language-cpp">#define ed1 1

static HWND hwnded;
</code></pre>
<p>Ich erstelle mein erste edit feld:</p>
<pre><code class="language-cpp">switch (message)                  /* handle the messages */
    {   case WM_CREATE:
	   {		  hwnded = CreateWindowEx(WS_EX_CLIENTEDGE ,&quot;edit&quot;, NULL,WS_CHILD | WS_VISIBLE | ES_LEFT|ES_AUTOHSCROLL|ES_AUTOVSCROLL|ES_MULTILINE,
				  0, 0, 700, 250, hwnd, (HMENU) ed1,
				  ((LPCREATESTRUCT) lParam) -&gt; hInstance, NULL) ;

                  SendMessage(hwnded, WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT),0);
	     }
</code></pre>
<p>So in der zwischenzeit wird das ganze beschreiben und später möchte ich das ganze neu zeichnen :</p>
<pre><code class="language-cpp">case IDM_DRAWNEW:
                    {
                                DestroyWindow(hwnded);
			                    hwnded = CreateWindowEx(WS_EX_CLIENTEDGE ,&quot;edit&quot;, NULL,WS_CHILD | WS_VISIBLE | ES_LEFT|ES_AUTOHSCROLL|ES_AUTOVSCROLL|ES_MULTILINE,
				 0, 0, 700, 250, hwnd, (HMENU) ed1,
				  ((LPCREATESTRUCT) lParam) -&gt; hInstance, NULL) ;
                                SendMessage(hwnded, WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT),0);
			        }
               break;
</code></pre>
<p>Der Compiler meldet keine Fehler doch wenn ich das programm starte und das Feld neu zeichnen lasse kommt der windows fehler:<br />
&quot;ad.exe fubktioniert nicht mehr richtig&quot;</p>
<p>Hoffe jemand kann mir sagen wieso der Fehler kommt.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/217616/edit-feldneu-zeichnen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 09:22:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/217616.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Jul 2008 10:31:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to edit feldneu zeichnen on Wed, 09 Jul 2008 10:31:10 GMT]]></title><description><![CDATA[<p>Hallo , habe mal angefangen mich mit edit boxen zu beschätigen allerdings taucht<br />
folgendes Problem auf.</p>
<pre><code class="language-cpp">#define ed1 1

static HWND hwnded;
</code></pre>
<p>Ich erstelle mein erste edit feld:</p>
<pre><code class="language-cpp">switch (message)                  /* handle the messages */
    {   case WM_CREATE:
	   {		  hwnded = CreateWindowEx(WS_EX_CLIENTEDGE ,&quot;edit&quot;, NULL,WS_CHILD | WS_VISIBLE | ES_LEFT|ES_AUTOHSCROLL|ES_AUTOVSCROLL|ES_MULTILINE,
				  0, 0, 700, 250, hwnd, (HMENU) ed1,
				  ((LPCREATESTRUCT) lParam) -&gt; hInstance, NULL) ;

                  SendMessage(hwnded, WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT),0);
	     }
</code></pre>
<p>So in der zwischenzeit wird das ganze beschreiben und später möchte ich das ganze neu zeichnen :</p>
<pre><code class="language-cpp">case IDM_DRAWNEW:
                    {
                                DestroyWindow(hwnded);
			                    hwnded = CreateWindowEx(WS_EX_CLIENTEDGE ,&quot;edit&quot;, NULL,WS_CHILD | WS_VISIBLE | ES_LEFT|ES_AUTOHSCROLL|ES_AUTOVSCROLL|ES_MULTILINE,
				 0, 0, 700, 250, hwnd, (HMENU) ed1,
				  ((LPCREATESTRUCT) lParam) -&gt; hInstance, NULL) ;
                                SendMessage(hwnded, WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT),0);
			        }
               break;
</code></pre>
<p>Der Compiler meldet keine Fehler doch wenn ich das programm starte und das Feld neu zeichnen lasse kommt der windows fehler:<br />
&quot;ad.exe fubktioniert nicht mehr richtig&quot;</p>
<p>Hoffe jemand kann mir sagen wieso der Fehler kommt.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1544065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1544065</guid><dc:creator><![CDATA[winapiq]]></dc:creator><pubDate>Wed, 09 Jul 2008 10:31:10 GMT</pubDate></item><item><title><![CDATA[Reply to edit feldneu zeichnen on Wed, 09 Jul 2008 10:58:25 GMT]]></title><description><![CDATA[<p>Editfelder werden von Windows in der class &quot;edit&quot; selbst verwaltet. Sobald sich (durch Eingabe) darin etwas ändert, macht das Windows allein. Ein eigenes 'Neuzeichnen' ist nicht erforderlich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1544089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1544089</guid><dc:creator><![CDATA[berniebutt]]></dc:creator><pubDate>Wed, 09 Jul 2008 10:58:25 GMT</pubDate></item></channel></rss>