<?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[Nummernblock: Punkt statt Komma]]></title><description><![CDATA[<p>Hallo,<br />
wie kann ich denn erreichen dass in einer dialogfeldbasierenden Anwendung wenn der Anwender auf das Komma des Nummernblocks drückt ein Punkt in den Eingabefeldern erscheint?!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/51079/nummernblock-punkt-statt-komma</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 15:03:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/51079.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Oct 2003 06:25:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nummernblock: Punkt statt Komma on Tue, 07 Oct 2003 06:25:03 GMT]]></title><description><![CDATA[<p>Hallo,<br />
wie kann ich denn erreichen dass in einer dialogfeldbasierenden Anwendung wenn der Anwender auf das Komma des Nummernblocks drückt ein Punkt in den Eingabefeldern erscheint?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/367236</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/367236</guid><dc:creator><![CDATA[freakx]]></dc:creator><pubDate>Tue, 07 Oct 2003 06:25:03 GMT</pubDate></item><item><title><![CDATA[Reply to Nummernblock: Punkt statt Komma on Tue, 07 Oct 2003 08:20:11 GMT]]></title><description><![CDATA[<p>Hi hi,</p>
<p>ganz einfache Methode. Du überprüfst jedes Zeichen das in der Editbox eingegeben wurde. Mit dem Ereignis EN_CHANGE kannst du ds Prima machen. Dann kannst du jedes mal das eingegebene Zeichen lesen und per ASCII Tabelle abfragen ob es ein Komma ist, wenn ja dann lösche das letzte zeichen und setze einen Punkt, wenn nein dann lass das so stehen.</p>
<p>Ich hoffe mal das hilft dir weiter.</p>
<p>Hier eine Lösung:</p>
<pre><code class="language-cpp">CString strEdit;
int iEditString;
char cEdit;

m_MembervonEDITControl.GetWindowText(strEdit);

iEditString = strEdit.GetLength();
if (iEditString != 0) {
    cEdit = strEdit[iEditString-1];

    if (cEdit == 44) {
        m_MembervonEDITControl.SetSel(iEditString -1, iEditString, FALSE);
        m_MembervonEDITControl.Clear();
        m_MembervonEDITControl.SetWindowText(strEdit + &quot;.&quot;);
        UpdateData(FALSE);
    }
}
</code></pre>
<p>Sollte funzen habs aber nicht getestet. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>mfg<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/367318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/367318</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Tue, 07 Oct 2003 08:20:11 GMT</pubDate></item><item><title><![CDATA[Reply to Nummernblock: Punkt statt Komma on Wed, 08 Oct 2003 05:29:48 GMT]]></title><description><![CDATA[<p>leider funktioniert das so nichtg ganz, immer wenn ich ein Komma eingeb wird das ganze Eingabefeld gelöscht und eine Null reingeschrieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/367970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/367970</guid><dc:creator><![CDATA[freakx]]></dc:creator><pubDate>Wed, 08 Oct 2003 05:29:48 GMT</pubDate></item><item><title><![CDATA[Reply to Nummernblock: Punkt statt Komma on Wed, 08 Oct 2003 06:02:25 GMT]]></title><description><![CDATA[<p>Ich weiß ja nicht wozu Du das brauchst, aber warum änderst Du das nicht - wenn Du's zum rechnen brauchst - im Code per Replace?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/367974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/367974</guid><dc:creator><![CDATA[cyrano]]></dc:creator><pubDate>Wed, 08 Oct 2003 06:02:25 GMT</pubDate></item><item><title><![CDATA[Reply to Nummernblock: Punkt statt Komma on Thu, 09 Oct 2003 13:23:14 GMT]]></title><description><![CDATA[<p>ja, ich brauch es zum rechnen, aber per replace geht nicht, da sobald man ein komma in das feld eingibt und es den fokus verliert von den mfc eine message box kommt in der &quot;bitte geben sie eine zahl ein&quot; steht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/369139</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/369139</guid><dc:creator><![CDATA[freakx]]></dc:creator><pubDate>Thu, 09 Oct 2003 13:23:14 GMT</pubDate></item></channel></rss>