<?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[float wert als eingabe in editfeld speichern]]></title><description><![CDATA[<p>Hallo,<br />
ich hab ein Editfeld das einzig zur aufnahme von Spannungswerten dient.<br />
z.b. 5 o. 3.6 oder so.</p>
<pre><code>hEditU = CreateWindowEx(WS_EX_CLIENTEDGE,
                                   &quot;edit&quot;,
                                   ...?,    // &lt;- das ist der Inhalt der Editfelds
                                   WS_CHILD | WS_VISIBLE | WS_VSCROLL | ES_MULTILINE |
                                              ES_AUTOVSCROLL,
                                   620, 50, 100, 20,
                                   hwnd,
                                   NULL,
                                   ((LPCREATESTRUCT) lParam) -&gt; hInstance,
                                   NULL);
</code></pre>
<p>Mein Createcode,<br />
wie kann ich den nun diesen Wert speichern um ihn anschliessend weiter zu verarbeiten??<br />
Wie gesagt, reine komma werte und kein Text.<br />
Ich hänge voll <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=":confused:"
      alt="😕"
    /><br />
besten dank schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/94746/float-wert-als-eingabe-in-editfeld-speichern</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 03:48:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/94746.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Dec 2004 15:21:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 15:21:44 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich hab ein Editfeld das einzig zur aufnahme von Spannungswerten dient.<br />
z.b. 5 o. 3.6 oder so.</p>
<pre><code>hEditU = CreateWindowEx(WS_EX_CLIENTEDGE,
                                   &quot;edit&quot;,
                                   ...?,    // &lt;- das ist der Inhalt der Editfelds
                                   WS_CHILD | WS_VISIBLE | WS_VSCROLL | ES_MULTILINE |
                                              ES_AUTOVSCROLL,
                                   620, 50, 100, 20,
                                   hwnd,
                                   NULL,
                                   ((LPCREATESTRUCT) lParam) -&gt; hInstance,
                                   NULL);
</code></pre>
<p>Mein Createcode,<br />
wie kann ich den nun diesen Wert speichern um ihn anschliessend weiter zu verarbeiten??<br />
Wie gesagt, reine komma werte und kein Text.<br />
Ich hänge voll <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=":confused:"
      alt="😕"
    /><br />
besten dank schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671628</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671628</guid><dc:creator><![CDATA[hosti]]></dc:creator><pubDate>Sun, 12 Dec 2004 15:21:44 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 15:50:33 GMT]]></title><description><![CDATA[<p>Willst du den Text auslesen und in einen float-Wert umwandeln, oder willst du, dass nur Zahlen und Komma eingegeben werden können (dafür müsstest du das edit subclassen)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671651</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 12 Dec 2004 15:50:33 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 16:02:44 GMT]]></title><description><![CDATA[<p>Nur das Feld auslesen und dann halt nen float wert erhalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671667</guid><dc:creator><![CDATA[hosti]]></dc:creator><pubDate>Sun, 12 Dec 2004 16:02:44 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 16:36:36 GMT]]></title><description><![CDATA[<p>GetWindowText -&gt; <a href="http://www.cplusplus.com/ref/cstdlib/atof.html" rel="nofollow">http://www.cplusplus.com/ref/cstdlib/atof.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/671691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671691</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 12 Dec 2004 16:36:36 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 16:48:17 GMT]]></title><description><![CDATA[<p>danke für die Antwort,<br />
doch leider bin ich scheinbar nicht im stande dies korrekt umzusetzen.</p>
<p>ich erstelle in char als buffer des editfeldes, oder?</p>
<p>Mit int GetWindowText(<br />
HWND hWnd, // ist klar<br />
LPTSTR lpString, // mein buffer char??<br />
int nMaxCount // auch klar, galube ich<br />
);</p>
<p>doch wie übergebe ich das char an die CreateWindow funktion??<br />
irgend ein Pointer??</p>
<p>könntest du mir vieleicht etwas Beispiel code basteln?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671712</guid><dc:creator><![CDATA[hosti]]></dc:creator><pubDate>Sun, 12 Dec 2004 16:48:17 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 17:02:20 GMT]]></title><description><![CDATA[<p>So irgendwie hatte ich das gedacht (ungetestet):</p>
<pre><code class="language-cpp">char buffer[20];
GetWindowText(hEditU,buffer,20);
double value = atof(buffer);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/671726</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671726</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 12 Dec 2004 17:02:20 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 17:09:27 GMT]]></title><description><![CDATA[<p>hm,<br />
könnt ich den nicht einfach den Buffer in der CreateWindowEx einsetzten (als Globale Variable)??</p>
<pre><code>hEditU = CreateWindowEx(WS_EX_CLIENTEDGE,
                                   &quot;edit&quot;,
                                   buffer[4],    // &lt;- das ist der Inhalt der Editfelds
                                   WS_CHILD | WS_VISIBLE | WS_VSCROLL | ES_MULTILINE |
                                              ES_AUTOVSCROLL,
                                   590, 50, 100, 20,
                                   hwnd,
                                   NULL,
                                   ((LPCREATESTRUCT) lParam) -&gt; hInstance,
                                   NULL);
</code></pre>
<p>Und dann diesen verwenden??<br />
oder geht das gar nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671731</guid><dc:creator><![CDATA[hosti]]></dc:creator><pubDate>Sun, 12 Dec 2004 17:09:27 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 17:11:46 GMT]]></title><description><![CDATA[<p>Willst du das Edit vorbelegen, oder den Inhalt auslesen - falls letzteres reicht es nicht, einfach bei CreateWindow den Buffer anzugeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671733</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671733</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 12 Dec 2004 17:11:46 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 17:16:35 GMT]]></title><description><![CDATA[<p>beiderlei,<br />
den Inhalt hab ich mit &quot;0&quot; vorgegeben.<br />
Nun ist ja die idee das der Benutzer eingibt...<br />
z.B. 5 und dann wird diese Wert übernommen. Und im Eingabefeld stehen gelassen.<br />
Dann bräuchte ich diesen Wert um Eine Sinuskurve dammit zu berechnen.</p>
<p>So schauts mal aus<br />
<a href="http://www.8ung.at/hosti/Graphrein.jpg" rel="nofollow">www.8ung.at/hosti/Graphrein.jpg</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/671735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671735</guid><dc:creator><![CDATA[hosti]]></dc:creator><pubDate>Sun, 12 Dec 2004 17:16:35 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 17:47:03 GMT]]></title><description><![CDATA[<p>Du musst explizit jedesmal nach der Änderung (also entweder EN_UPDATE oder EN_CHANGE abfangen) den Wert auslesen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671758</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671758</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 12 Dec 2004 17:47:03 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 17:50:27 GMT]]></title><description><![CDATA[<p>Das Editfeld wird ja in der WM_CREATE erstellt.<br />
damit der neue Wert übernommen wird(also dargestellt) müsste ich das Feld im WM_PAINT erstellen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671764</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671764</guid><dc:creator><![CDATA[hosti]]></dc:creator><pubDate>Sun, 12 Dec 2004 17:50:27 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Sun, 12 Dec 2004 18:17:41 GMT]]></title><description><![CDATA[<p>hosti schrieb:</p>
<blockquote>
<p>damit der neue Wert übernommen wird(also dargestellt) müsste ich das Feld im WM_PAINT erstellen?</p>
</blockquote>
<p>Obwohl ich nicht ganz verstehe, wo dein Problem liegt - in WM_PAINT brauchst udn solltest du keine Controls erstellen. Den Wert kannst du mit SetWindowText setzen und mit GetWindowText auslesen (bzw. SetDlgItemText / GetDlgItemText wenn du dem Edit eine ID gibst - hMenu), falls das dein Problem ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/671785</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/671785</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 12 Dec 2004 18:17:41 GMT</pubDate></item><item><title><![CDATA[Reply to float wert als eingabe in editfeld speichern on Mon, 13 Dec 2004 16:33:58 GMT]]></title><description><![CDATA[<p>Achso, ja klar.<br />
dankeschön, ich probiers mal... werd mich aber glaub nochmals melden<br />
Meine Gedankengänge sind manchmal unerklärlich <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=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/672491</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/672491</guid><dc:creator><![CDATA[hosti]]></dc:creator><pubDate>Mon, 13 Dec 2004 16:33:58 GMT</pubDate></item></channel></rss>