<?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[EM_GETTEXTEX bei RichEdit]]></title><description><![CDATA[<p>Also das Richedit hab ich so :</p>
<pre><code class="language-cpp">HWND chat;

chat = CreateWindowEx(WS_EX_CLIENTEDGE,RICHEDIT_CLASS,&quot;&quot;,WS_CHILD|WS_VISIBLE|ES_DISABLENOSCROLL|ES_MULTILINE|ES_AUTOVSCROLL|WS_VSCROLL,chatposX,chatposY,chatWidth,chatHeight,hDlg,NULL,GetModuleHandle(NULL),NULL);
</code></pre>
<p>Und jetzt moechte ich den Text aus dieser RichEdit lesen mit</p>
<pre><code class="language-cpp">char thetext[1000],buf[1000];
GETTEXTEX get;
ZeroMemory(&amp;get,sizeof(GETTEXTEX));	
get.cb = sizeof(GETTEXTEX);
get.codepage = CP_ACP;
get.flags = GT_DEFAULT;
get.lpDefaultChar = NULL;
get.lpUsedDefChar = NULL;

SendMessage(chat,EM_GETTEXTEX,(WPARAM)&amp;get,(LPARAM)thetext);

sprintf(buf,&quot;%s\n&quot;,thetext);
MessageBox(0,buf,&quot;Buffer&quot;,MB_OK);
</code></pre>
<p>Die MessageBox gibt mir aber nur die ersten 21 Zeichen aus , warum ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160150/em_gettextex-bei-richedit</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 06:04:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160150.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Sep 2006 12:35:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to EM_GETTEXTEX bei RichEdit on Fri, 22 Sep 2006 12:35:29 GMT]]></title><description><![CDATA[<p>Also das Richedit hab ich so :</p>
<pre><code class="language-cpp">HWND chat;

chat = CreateWindowEx(WS_EX_CLIENTEDGE,RICHEDIT_CLASS,&quot;&quot;,WS_CHILD|WS_VISIBLE|ES_DISABLENOSCROLL|ES_MULTILINE|ES_AUTOVSCROLL|WS_VSCROLL,chatposX,chatposY,chatWidth,chatHeight,hDlg,NULL,GetModuleHandle(NULL),NULL);
</code></pre>
<p>Und jetzt moechte ich den Text aus dieser RichEdit lesen mit</p>
<pre><code class="language-cpp">char thetext[1000],buf[1000];
GETTEXTEX get;
ZeroMemory(&amp;get,sizeof(GETTEXTEX));	
get.cb = sizeof(GETTEXTEX);
get.codepage = CP_ACP;
get.flags = GT_DEFAULT;
get.lpDefaultChar = NULL;
get.lpUsedDefChar = NULL;

SendMessage(chat,EM_GETTEXTEX,(WPARAM)&amp;get,(LPARAM)thetext);

sprintf(buf,&quot;%s\n&quot;,thetext);
MessageBox(0,buf,&quot;Buffer&quot;,MB_OK);
</code></pre>
<p>Die MessageBox gibt mir aber nur die ersten 21 Zeichen aus , warum ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142517</guid><dc:creator><![CDATA[PhoeNix_FasT]]></dc:creator><pubDate>Fri, 22 Sep 2006 12:35:29 GMT</pubDate></item><item><title><![CDATA[Reply to EM_GETTEXTEX bei RichEdit on Fri, 22 Sep 2006 13:01:52 GMT]]></title><description><![CDATA[<p>MSDN schrieb:</p>
<blockquote>
<p>...<br />
lParam<br />
Pointer to a null-terminated string that receives the text. The size of this buffer should be placed in the cb member of the GETTEXTEX structure.</p>
</blockquote>
<p>konkret:</p>
<pre><code class="language-cpp">get.cb = sizeof(thetext)-1;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1142540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142540</guid><dc:creator><![CDATA[Airdamn]]></dc:creator><pubDate>Fri, 22 Sep 2006 13:01:52 GMT</pubDate></item></channel></rss>