<?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[CEdit in CWnd ON_EN_CHANGE]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte händisch ein CEdit Feld in einem CWnd anlegen.<br />
Bin dabei wie folgt vorgegangen:</p>
<pre><code class="language-cpp">m_cEdit = new CEdit; 
  m_cEdit -&gt;Create(WS_CHILD | WS_VISIBLE | WS_BORDER | ES_RIGHT |   
                       ES_NUMBER, CRect(10, 10, 60, 40), this, 117);
  m_cEdit -&gt;SetWindowText(&quot;100&quot;);
</code></pre>
<p>Normal kann man ja auf Eingaben z.B. mit ON_EN_CHANGE reagieren.</p>
<pre><code class="language-cpp">ON_EN_CHANGE(IDC_EDIT_ID, OnChangeEdit)
</code></pre>
<p>Wenn ich allerdings mein Edit händisch anlege habe ich keine ID und daher weiß ich nicht wie ich das jetzt machen will. Ich möchte mitbekommen wenn der Benutzer etwas einbgibt und dann sofort eine plausibilitätsprüfung machen. Weiß jemand wie das funktioniert?</p>
<p>Danke schön <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/167170/cedit-in-cwnd-on_en_change</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 20:59:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/167170.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Dec 2006 13:15:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CEdit in CWnd ON_EN_CHANGE on Thu, 07 Dec 2006 13:15:15 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte händisch ein CEdit Feld in einem CWnd anlegen.<br />
Bin dabei wie folgt vorgegangen:</p>
<pre><code class="language-cpp">m_cEdit = new CEdit; 
  m_cEdit -&gt;Create(WS_CHILD | WS_VISIBLE | WS_BORDER | ES_RIGHT |   
                       ES_NUMBER, CRect(10, 10, 60, 40), this, 117);
  m_cEdit -&gt;SetWindowText(&quot;100&quot;);
</code></pre>
<p>Normal kann man ja auf Eingaben z.B. mit ON_EN_CHANGE reagieren.</p>
<pre><code class="language-cpp">ON_EN_CHANGE(IDC_EDIT_ID, OnChangeEdit)
</code></pre>
<p>Wenn ich allerdings mein Edit händisch anlege habe ich keine ID und daher weiß ich nicht wie ich das jetzt machen will. Ich möchte mitbekommen wenn der Benutzer etwas einbgibt und dann sofort eine plausibilitätsprüfung machen. Weiß jemand wie das funktioniert?</p>
<p>Danke schön <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1188328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1188328</guid><dc:creator><![CDATA[Lara*]]></dc:creator><pubDate>Thu, 07 Dec 2006 13:15:15 GMT</pubDate></item><item><title><![CDATA[Reply to CEdit in CWnd ON_EN_CHANGE on Thu, 07 Dec 2006 13:36:57 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">virtual BOOL Create(
   DWORD dwStyle,
   const RECT&amp; rect,
   CWnd* pParentWnd,
   UINT nID 
);
</code></pre>
<p>Keine ID? Und was ist das UINT nID, bzw. die Zahl 117, welche du übergibst?</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1188349</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1188349</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Thu, 07 Dec 2006 13:36:57 GMT</pubDate></item><item><title><![CDATA[Reply to CEdit in CWnd ON_EN_CHANGE on Thu, 07 Dec 2006 13:47:27 GMT]]></title><description><![CDATA[<p>Hallo Dravere,</p>
<p>ja klar, da wär sie doch <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
Danke vielmals, ich hab daran einfach nicht gedacht :xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1188364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1188364</guid><dc:creator><![CDATA[Lara*]]></dc:creator><pubDate>Thu, 07 Dec 2006 13:47:27 GMT</pubDate></item></channel></rss>