<?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[RichEdit2 Contol =&amp;gt; Change Notification ?]]></title><description><![CDATA[<p>Hi</p>
<p>Ich habe eine RichEdit2 Komponente und will sobal sich etwas im Fenster verändert eine Message bekommen. Jedoch bekomm ich das nicht hin.</p>
<p>Hatte hier schon im Forum gesucht, jedoch nichts brauchbares gefunden.</p>
<p>Wäre nett wenn mir hier jemand helfen könnte.</p>
<p>Ciao</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/84132/richedit2-contol-gt-change-notification</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 02:37:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/84132.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Aug 2004 05:57:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Fri, 27 Aug 2004 05:57:34 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>Ich habe eine RichEdit2 Komponente und will sobal sich etwas im Fenster verändert eine Message bekommen. Jedoch bekomm ich das nicht hin.</p>
<p>Hatte hier schon im Forum gesucht, jedoch nichts brauchbares gefunden.</p>
<p>Wäre nett wenn mir hier jemand helfen könnte.</p>
<p>Ciao</p>
]]></description><link>https://www.c-plusplus.net/forum/post/592689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/592689</guid><dc:creator><![CDATA[C++ Nub]]></dc:creator><pubDate>Fri, 27 Aug 2004 05:57:34 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Fri, 27 Aug 2004 13:32:26 GMT]]></title><description><![CDATA[<blockquote>
<p>Rich Edit 1.0: To receive EN_UPDATE notifications, specify ENM_UPDATE in the mask sent with the EM_SETEVENTMASK message.</p>
<p>Rich Edit 2.0 and later: The ENM_UPDATE flag is ignored. The EN_UPDATE notification is always received. However, when Microsoft Rich Edit 3.0 emulates Rich Edit 1.0, to receive EN_UPDATE notifications you must specify ENM_UPDATE in the mask sent with the EM_SETEVENTMASK message.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/593158</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/593158</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 27 Aug 2004 13:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Sun, 05 Sep 2004 11:53:57 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Das hatte ich bereits versucht, bekomm aber keine Nachricht !!</p>
<p>Ciao</p>
]]></description><link>https://www.c-plusplus.net/forum/post/599879</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/599879</guid><dc:creator><![CDATA[C++ Nub]]></dc:creator><pubDate>Sun, 05 Sep 2004 11:53:57 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Sun, 05 Sep 2004 22:21:18 GMT]]></title><description><![CDATA[<p>Kann das evt. an daran liegen, dass ich die Abfrage in der DlgProc ausführe ?</p>
<p>Oder muss ich die Msg in der RichEditProc abfangen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/600348</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/600348</guid><dc:creator><![CDATA[C++ Nub]]></dc:creator><pubDate>Sun, 05 Sep 2004 22:21:18 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Mon, 06 Sep 2004 19:20:52 GMT]]></title><description><![CDATA[<blockquote>
<p>he parent window of the edit control receives this notification message through a WM_COMMAND message.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/601068</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601068</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Mon, 06 Sep 2004 19:20:52 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Mon, 06 Sep 2004 20:41:55 GMT]]></title><description><![CDATA[<p>Du bist lustig. Lesen kann ich auch. Das funtzt einfach nicht !!</p>
<pre><code class="language-cpp">..
	case WM_COMMAND:
		{
            if(HIWORD (wp) == EN_CHANGE ) 
            {
					MessageBox(0, &quot;1&quot;, &quot;&quot;, MB_OK );
					return 0;
			}break;

            if( (wp) == EN_CHANGE ) 
			{
					MessageBox(0, &quot;2&quot;, &quot;&quot;, MB_OK );
					return 0;
			}break;
...
</code></pre>
<p>Muss ich evt. besondere Eigenschaften setzten ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/601128</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601128</guid><dc:creator><![CDATA[C++ Nub]]></dc:creator><pubDate>Mon, 06 Sep 2004 20:41:55 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Mon, 06 Sep 2004 22:21:30 GMT]]></title><description><![CDATA[<p>Was für eine Rich Edit Verision verwendest du denn?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/601184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601184</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Mon, 06 Sep 2004 22:21:30 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Mon, 06 Sep 2004 22:36:04 GMT]]></title><description><![CDATA[<p>Ich verwender RichEdit2 (<a href="http://VC++.Net" rel="nofollow">VC++.Net</a>)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/601191</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601191</guid><dc:creator><![CDATA[C++  Nub]]></dc:creator><pubDate>Mon, 06 Sep 2004 22:36:04 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Tue, 07 Sep 2004 08:12:04 GMT]]></title><description><![CDATA[<p>Ich sehe es jetzt erst - du verwendest EN_CHANGE und nicht EN_UPDATE. Hab es bei mir gerade getestet und EN_UPDATE bekomme ich <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="🙂"
    /></p>
<p>Zu EN_CHANGE:</p>
<blockquote>
<p>Supported in Microsoft Rich Edit 1.0 and later. To receive EN_CHANGE notifications, specify ENM_CHANGE in the mask sent with the EM_SETEVENTMASK message.<br />
[...]<br />
The EN_CHANGE notification is not sent when the ES_MULTILINE style is used and the text is sent through WM_SETTEXT.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/601329</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601329</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 07 Sep 2004 08:12:04 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Tue, 07 Sep 2004 12:58:33 GMT]]></title><description><![CDATA[<p>flenders schrieb:</p>
<blockquote>
<p>Ich sehe es jetzt erst - du verwendest EN_CHANGE und nicht EN_UPDATE. Hab es bei mir gerade getestet und EN_UPDATE bekomme ich <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="🙂"
    /></p>
<p>Zu EN_CHANGE:</p>
<blockquote>
<p>Supported in Microsoft Rich Edit 1.0 and later. To receive EN_CHANGE notifications, specify ENM_CHANGE in the mask sent with the EM_SETEVENTMASK message.<br />
[...]<br />
<strong>The EN_CHANGE notification is not sent when the ES_MULTILINE style is used and the text is sent through WM_SETTEXT.</strong></p>
</blockquote>
</blockquote>
<p>Ist bei mir nicht der Fall gewesen, und hatte davor auch beides ausprobiert! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Naja, sonst funktioniert das ganze immernoch nicht. Dürfte eig. nicht sein <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/601605</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601605</guid><dc:creator><![CDATA[C++ Nub]]></dc:creator><pubDate>Tue, 07 Sep 2004 12:58:33 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Tue, 07 Sep 2004 13:04:04 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>funtzt doch wunderbar..</p>
<p>hatte einen code-fehler.</p>
<p>Sry &amp; THx <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
<p>Cu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/601609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601609</guid><dc:creator><![CDATA[C++ Nub]]></dc:creator><pubDate>Tue, 07 Sep 2004 13:04:04 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Tue, 07 Sep 2004 13:06:52 GMT]]></title><description><![CDATA[<p>Pass auf, dass du bei EM_SETEVENTMASK EN<strong>M</strong>_CHANGE angibst sonst funzt das nicht. I hab einmal 3 Tage gebraucht um den Fehler zu finden!</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1644">@flenders</a> EN_CHANGE funzt bei mir, bei Rich Edit 1.0 und Rich Edit 2.0</p>
]]></description><link>https://www.c-plusplus.net/forum/post/601616</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601616</guid><dc:creator><![CDATA[Irgendwer]]></dc:creator><pubDate>Tue, 07 Sep 2004 13:06:52 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Wed, 08 Sep 2004 15:27:42 GMT]]></title><description><![CDATA[<p>OK Danke!!</p>
<p>Naja komischerwise kann ich auch nicht den Text auslesen ...<br />
Die Länge des Textes kann ich aber auslesen !!</p>
<p>[cpp]<br />
char buf[150];<br />
GetWindowText( GetDlgItem( hdlg,IDC_RICH_ENG), buf, 140 );<br />
MessageBox(0, buf, &quot;&quot;, MB_OK );<br />
{/cpp]</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/602609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/602609</guid><dc:creator><![CDATA[C++ Nub]]></dc:creator><pubDate>Wed, 08 Sep 2004 15:27:42 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Wed, 08 Sep 2004 15:53:26 GMT]]></title><description><![CDATA[<p>Hm,...</p>
<p>Also wenn ich mit SETTEXT den text einfüge kann ich den text nicht mit GETTEXT auslesen, nur wenn ich ihn dann komplett neu (per KEYBOARD) eingeben wird er mir ausgegeben...</p>
<p>woran liegt das ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/602628</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/602628</guid><dc:creator><![CDATA[C++ Nub]]></dc:creator><pubDate>Wed, 08 Sep 2004 15:53:26 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Wed, 08 Sep 2004 16:28:17 GMT]]></title><description><![CDATA[<p>Hat Sich wieder alles erledigt <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/602646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/602646</guid><dc:creator><![CDATA[C++ Nub]]></dc:creator><pubDate>Wed, 08 Sep 2004 16:28:17 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Fri, 10 Sep 2004 13:02:52 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>muss euch doch nochmal stören. Hab hier noch ein Problem mit dem Style.</p>
<p>Wenn ich jetzt die Funktion &quot;SetStyledText&quot; zb. 3 mal hintereinander verwende, wird jeder folgende Text im Style vom ersten hinzugefügt. D.h. wenn der erste Text BOLD,UNDERLINE war so ist jeder Text, welchen ich mit dieser FUnktion adde ebenfalls mit den gleichen style-einsteöllungen zu sehen.</p>
<p>Ich Setz jedoch IMMER das alte Format!!</p>
<p>Hab in der MSN nachgelesen und müsste stimmen ...</p>
<p>Hat da evt. jemand eine Idee warum das so ist ?</p>
<p>KEINE ANGST VOR DEM CODE: ISt SEHR EINFACH !!! <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="🙂"
    /></p>
<pre><code class="language-cpp">CRichEdit::CRichEdit( HWND hWnd, COLORREF color, DWORD dwId )
{
	m_hWnd		= hWnd;
	m_TextColor = color;
	m_dwId		= dwId;

	memset( &amp;m_cfBase, 0, sizeof(CHARFORMAT) ); 
	m_cfBase.cbSize			= sizeof(CHARFORMAT); 
	m_cfBase.dwMask			= CFM_COLOR;
	m_cfBase.crTextColor	= m_TextColor;

	// get edit handle
	HWND hREdit = NULL;
	hREdit = GetDlgItem( m_hWnd, m_dwId );
	if( hREdit != NULL )
	{
		SendMessage(hREdit, EM_SETCHARFORMAT, SCF_WORD | SCF_SELECTION, (LPARAM)&amp;m_cfBase); 
	}
}

.....
..

//------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------
int CRichEdit::SetStyledText( char *text, DWORD style, COLORREF color, int size, char *szFace )
{
	CHARFORMAT cf;
    SETTEXTEX ste;
	HWND hREdit = NULL;

	// get edit handle
	hREdit = GetDlgItem( m_hWnd, m_dwId );

	if( hREdit != NULL )
	{
		int txt_lngth = (int)GetCharCount();

		// zero mem
		memset( &amp;cf, 0, sizeof(CHARFORMAT) ); 
		cf.cbSize		= sizeof(CHARFORMAT); 

		ste.flags    = ST_SELECTION; 
	    ste.codepage = 0; 

		//---------------------
		// underlined ?
		//---------------------
		if( style &amp; RESTYLE_UNDERLINE )
		{
			cf.dwMask |= CFM_UNDERLINE;
			cf.dwEffects |= CFE_UNDERLINE;
		}

		//---------------------
		// italic ?
		//---------------------
		if( style &amp; RESTYLE_ITALIC )
		{
			cf.dwMask |= CFM_ITALIC;
			cf.dwEffects |= CFE_ITALIC;
		}

		//---------------------
		// strikeout ?
		//---------------------
		if( style &amp; RESTYLE_STRIKEOUT )
		{
			cf.dwMask |= CFM_STRIKEOUT;
			cf.dwEffects |= CFE_STRIKEOUT;
		}

		//---------------------
		// bold ?
		//---------------------
		if( style &amp; RESTYLE_BOLD )
		{
			cf.dwMask |= CFM_BOLD;
			cf.dwEffects |=  CFE_BOLD;
		}

		//---------------------
		// size ?
		//---------------------
		if( style &amp; RESTYLE_SIZE )
		{
			cf.dwMask	|= CFM_SIZE;
			cf.yHeight	= size;
		}

		//---------------------
		// color ?
		//---------------------
		if( style &amp; RESTYLE_COLOR )
		{
			cf.dwMask |= CFM_COLOR;
			cf.crTextColor = color;
		}

		//---------------------
		// is protected text ?
		//---------------------
		if( style &amp; RESTYLE_PROTECTED )
		{
			cf.dwMask |= CFM_PROTECTED;
			cf.dwEffects |= CFE_PROTECTED;
			SendMessage(hREdit, EM_SETEVENTMASK, 0, ENM_PROTECTED  ); 
		}

		//---------------------
		// face name ?
		//---------------------
		if( style &amp; RESTYLE_FACENAME )
		{
			strcpy( cf.szFaceName, szFace );
		}

		// set new charformat
		SendMessage(hREdit, EM_SETCHARFORMAT, SCF_WORD | SCF_SELECTION, (LPARAM)&amp;cf); 
		SendMessage(hREdit, EM_SETTEXTEX,  (WPARAM)&amp;ste, (LPARAM)text); 

		// set old char format 
		SendMessage(hREdit, EM_SETCHARFORMAT , SCF_WORD | SCF_SELECTION, (LPARAM)&amp;m_cfBase); 

		return 1;

	}
	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/604007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604007</guid><dc:creator><![CDATA[C++ Nub]]></dc:creator><pubDate>Fri, 10 Sep 2004 13:02:52 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit2 Contol =&amp;gt; Change Notification ? on Sat, 11 Sep 2004 16:45:04 GMT]]></title><description><![CDATA[<p>Hi all,</p>
<p>hatte das Problem auch. Hab es leider nicht hinbekommen.</p>
<p>Würde mich auch interessieren! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Ciao</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604695</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604695</guid><dc:creator><![CDATA[brenezen]]></dc:creator><pubDate>Sat, 11 Sep 2004 16:45:04 GMT</pubDate></item></channel></rss>