<?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[RichEdit 2.0&#x2F;3.0]]></title><description><![CDATA[<p>Hallo Leute!!</p>
<p>Ich hab nun seit 2h google von oben bis unten durchgesucht aber anscheinend bin ich blind oder total dämlich, wobei ich letzeres ausschliesse <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>
<ol>
<li></li>
</ol>
<p>Wie bekomme ich den Richedit 2.0 bzw 3.0 nur mit der winapi zum laufen?<br />
bis jetzt hab ich folgenden code:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;richedit.h&gt;
#include &lt;commctrl.h&gt;

#pragma comment(lib, &quot;comctl32.lib&quot;)

HWND hCONSOLELOG;

int __stdcall WinMain (HINSTANCE hI, HINSTANCE hPrI, PSTR szCmdLine, int iCmdShow) {

	char *classname = &quot;dolle_CLASS&quot;;
	WNDCLASS wc;	
	HBRUSH backgr = CreateSolidBrush( RGB(255/2, 255/2, 255/2) );

	wc.style         = CS_HREDRAW | CS_VREDRAW;   
	wc.lpfnWndProc   = WndProc;
	wc.cbClsExtra    = 0;
	wc.cbWndExtra    = 0;
	wc.hInstance     = hI;
	wc.hIcon         = LoadIcon (NULL, IDI_WINLOGO);
	wc.hCursor       = LoadCursor (NULL, IDC_ARROW);
	wc.hbrBackground = backgr;
	wc.lpszMenuName  = NULL;
	wc.lpszClassName = classname;

	RegisterClass (&amp;wc);

	hWINDOW = CreateWindow(
					//WS_EX_LAYERED,
					classname, 
					&quot;Konsole&quot;,					
					WS_SYSMENU | WS_CAPTION | WS_MINIMIZEBOX | WS_THICKFRAME,
					CW_USEDEFAULT,			
					CW_USEDEFAULT,			
					500,	
					470,		
					NULL,		
					NULL,		
					hI,			
					NULL);		

	ShowWindow   (hWINDOW, iCmdShow);
	UpdateWindow (hWINDOW);

	MSG msg;
	while (GetMessage (&amp;msg, NULL, 0, 0)) {
		TranslateMessage (&amp;msg);
        DispatchMessage (&amp;msg);
    }

	return msg.wParam;
}

LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) {

	switch (message) {
		case WM_CREATE:

		g_hInst = ((LPCREATESTRUCT)lParam)-&gt;hInstance; 
//create RICH
		LoadLibrary(TEXT(&quot;riched20.dll&quot;));
		hCONSOLELOG = CreateWindowEx(
        WS_EX_CLIENTEDGE, TEXT(&quot;RICHEDIT_CLASS&quot;),
        NULL, WS_CHILD | WS_VISIBLE | ES_SAVESEL |
        ES_SUNKEN | ES_MULTILINE | ES_AUTOHSCROLL |
        ES_AUTOVSCROLL, 
		12, 12, 466, 319, 
		hwnd,
        NULL,
		g_hInst, 
		NULL);
			return 0;
		case WM_PAINT:
			return 0;

		case WM_DESTROY:
			PostQuitMessage (0);
			return 0;
}

	return DefWindowProc (hwnd, message, wParam, lParam);
}
</code></pre>
<ol start="2">
<li></li>
</ol>
<p>Wie kann ich den akutellen visuellen Stil meiner Form zuweisen?<br />
Also das die Buttons zb im Look von winxp sind..</p>
<p>mfg _carnage</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/154459/richedit-2-0-3-0</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 13:35:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/154459.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Jul 2006 12:36:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Thu, 27 Jul 2006 12:39:36 GMT]]></title><description><![CDATA[<p>Hallo Leute!!</p>
<p>Ich hab nun seit 2h google von oben bis unten durchgesucht aber anscheinend bin ich blind oder total dämlich, wobei ich letzeres ausschliesse <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>
<ol>
<li></li>
</ol>
<p>Wie bekomme ich den Richedit 2.0 bzw 3.0 nur mit der winapi zum laufen?<br />
bis jetzt hab ich folgenden code:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;richedit.h&gt;
#include &lt;commctrl.h&gt;

#pragma comment(lib, &quot;comctl32.lib&quot;)

HWND hCONSOLELOG;

int __stdcall WinMain (HINSTANCE hI, HINSTANCE hPrI, PSTR szCmdLine, int iCmdShow) {

	char *classname = &quot;dolle_CLASS&quot;;
	WNDCLASS wc;	
	HBRUSH backgr = CreateSolidBrush( RGB(255/2, 255/2, 255/2) );

	wc.style         = CS_HREDRAW | CS_VREDRAW;   
	wc.lpfnWndProc   = WndProc;
	wc.cbClsExtra    = 0;
	wc.cbWndExtra    = 0;
	wc.hInstance     = hI;
	wc.hIcon         = LoadIcon (NULL, IDI_WINLOGO);
	wc.hCursor       = LoadCursor (NULL, IDC_ARROW);
	wc.hbrBackground = backgr;
	wc.lpszMenuName  = NULL;
	wc.lpszClassName = classname;

	RegisterClass (&amp;wc);

	hWINDOW = CreateWindow(
					//WS_EX_LAYERED,
					classname, 
					&quot;Konsole&quot;,					
					WS_SYSMENU | WS_CAPTION | WS_MINIMIZEBOX | WS_THICKFRAME,
					CW_USEDEFAULT,			
					CW_USEDEFAULT,			
					500,	
					470,		
					NULL,		
					NULL,		
					hI,			
					NULL);		

	ShowWindow   (hWINDOW, iCmdShow);
	UpdateWindow (hWINDOW);

	MSG msg;
	while (GetMessage (&amp;msg, NULL, 0, 0)) {
		TranslateMessage (&amp;msg);
        DispatchMessage (&amp;msg);
    }

	return msg.wParam;
}

LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) {

	switch (message) {
		case WM_CREATE:

		g_hInst = ((LPCREATESTRUCT)lParam)-&gt;hInstance; 
//create RICH
		LoadLibrary(TEXT(&quot;riched20.dll&quot;));
		hCONSOLELOG = CreateWindowEx(
        WS_EX_CLIENTEDGE, TEXT(&quot;RICHEDIT_CLASS&quot;),
        NULL, WS_CHILD | WS_VISIBLE | ES_SAVESEL |
        ES_SUNKEN | ES_MULTILINE | ES_AUTOHSCROLL |
        ES_AUTOVSCROLL, 
		12, 12, 466, 319, 
		hwnd,
        NULL,
		g_hInst, 
		NULL);
			return 0;
		case WM_PAINT:
			return 0;

		case WM_DESTROY:
			PostQuitMessage (0);
			return 0;
}

	return DefWindowProc (hwnd, message, wParam, lParam);
}
</code></pre>
<ol start="2">
<li></li>
</ol>
<p>Wie kann ich den akutellen visuellen Stil meiner Form zuweisen?<br />
Also das die Buttons zb im Look von winxp sind..</p>
<p>mfg _carnage</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1105350</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105350</guid><dc:creator><![CDATA[_carnage]]></dc:creator><pubDate>Thu, 27 Jul 2006 12:39:36 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Thu, 27 Jul 2006 12:44:01 GMT]]></title><description><![CDATA[<p>1.)<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp</a></p>
<p>msdn schrieb:</p>
<blockquote>
<p>Before creating a rich edit control, you should call the LoadLibrary function to verify which version of Rich Edit is installed</p>
</blockquote>
<p>2.)<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/cookbook.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/cookbook.asp</a><br />
<a href="http://www.winapi.net/index.php?inhalt=t8" rel="nofollow">http://www.winapi.net/index.php?inhalt=t8</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1105358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105358</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 27 Jul 2006 12:44:01 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Thu, 27 Jul 2006 12:49:32 GMT]]></title><description><![CDATA[<p>danke für die schnelle Antwort aber<br />
zu 1.<br />
-&gt; ich hab doch aber &quot;LoadLibrary(TEXT(&quot;riched20.dll&quot;));&quot; noch vor dem Laden geschrieben, ging dennoch nicht..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1105363</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105363</guid><dc:creator><![CDATA[_carnage]]></dc:creator><pubDate>Thu, 27 Jul 2006 12:49:32 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Thu, 27 Jul 2006 13:11:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CreateWindowEx(
    WS_EX_CLIENTEDGE,
    RICHEDIT_CLASS, // kein text !!!
    // ..
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1105381</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105381</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 27 Jul 2006 13:11:32 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Thu, 27 Jul 2006 13:18:26 GMT]]></title><description><![CDATA[<p>tatsächlich, funktioniert so, vielen Dank!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1105386</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105386</guid><dc:creator><![CDATA[_carnage]]></dc:creator><pubDate>Thu, 27 Jul 2006 13:18:26 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Thu, 27 Jul 2006 17:07:07 GMT]]></title><description><![CDATA[<p>Mal BTW:</p>
<pre><code class="language-cpp">char *classname = &quot;dolle_CLASS&quot;;
</code></pre>
<p>Sollte wohl eher so heißen:</p>
<pre><code class="language-cpp">char classname[] = &quot;dolle_CLASS&quot;;
</code></pre>
<p>oder noch besser so:</p>
<pre><code class="language-cpp">TCHAR classname[] = TEXT(&quot;dolle_CLASS&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1105562</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1105562</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 27 Jul 2006 17:07:07 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Fri, 11 Aug 2006 18:35:55 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Ich such auch schon eine weile wie das funktioniert.<br />
Aber immer wenn ich das RichEdit als &quot;WS_CHILD&quot; erstelle, ist dies SEHR Langsam.<br />
Hat jemand ne ahnung woran das liegt ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1115566</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1115566</guid><dc:creator><![CDATA[XzenTorXz]]></dc:creator><pubDate>Fri, 11 Aug 2006 18:35:55 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Fri, 11 Aug 2006 18:53:29 GMT]]></title><description><![CDATA[<p><strong>CodeFinder:</strong></p>
<pre><code class="language-cpp">TCHAR szClassName[] = _T(&quot;MY_CLASS&quot;);
</code></pre>
<p><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>
]]></description><link>https://www.c-plusplus.net/forum/post/1115574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1115574</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Fri, 11 Aug 2006 18:53:29 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Fri, 11 Aug 2006 21:42:51 GMT]]></title><description><![CDATA[<p>(D)Evil schrieb:</p>
<blockquote>
<p><strong>CodeFinder:</strong></p>
<pre><code class="language-cpp">TCHAR szClassName[] = _T(&quot;MY_CLASS&quot;);
</code></pre>
<p><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>
</blockquote>
<p>LOL:</p>
<p>TCHAR.H schrieb:</p>
<blockquote>
<pre><code class="language-cpp">[...]
#ifdef UNICODE
[...]
#define __T(x)      L ## x
[...]
</code></pre>
</blockquote>
<p>WINNT.H schrieb:</p>
<blockquote>
<pre><code class="language-cpp">[...]
#ifdef UNICODE
[...]
#define __TEXT(quote) L##quote
[...]
</code></pre>
</blockquote>
<p>Noch Fragen ? :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1115689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1115689</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Fri, 11 Aug 2006 21:42:51 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Fri, 11 Aug 2006 21:49:05 GMT]]></title><description><![CDATA[<p>Hmm... meinst du wirklich das ICH das nicht weiß? Aber wenn man schon tchar.h verwendet... dann bitte auch alles daraus -.-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1115698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1115698</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Fri, 11 Aug 2006 21:49:05 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Fri, 11 Aug 2006 22:40:35 GMT]]></title><description><![CDATA[<p>(D)Evil schrieb:</p>
<blockquote>
<p>[...] meinst du wirklich das ICH das nicht weiß? [...]</p>
</blockquote>
<p>*lol*</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/12048">@CodeFinder</a>: Leg' dich besser nicht mit (D)Evil an... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Greetz, Swordfish</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1115709</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1115709</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Fri, 11 Aug 2006 22:40:35 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Sat, 12 Aug 2006 02:28:10 GMT]]></title><description><![CDATA[<p>hat jemand einen Tipp für mich ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1115760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1115760</guid><dc:creator><![CDATA[XzenTorXz]]></dc:creator><pubDate>Sat, 12 Aug 2006 02:28:10 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Sat, 12 Aug 2006 13:39:05 GMT]]></title><description><![CDATA[<p>(D)Evil schrieb:</p>
<blockquote>
<p>Hmm... meinst du wirklich das ICH das nicht weiß? Aber wenn man schon tchar.h verwendet...</p>
</blockquote>
<p>Mal davon abgesehen das ich nicht vor hatte mich mit dir 'anzulegen'...<br />
bist du der einzige der von der Inkludierung von tchar.h redet <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> ...DENN:</p>
<p>Sowohl der sich dem aktuellen Zeichensatz(UNICODE/ANSI) anpassende Datentyp 'TCHAR'<br />
als auch das Makro 'TEXT', wie ich ja zuvor schon gepostet hab, benötigt NICHT den Header tchar.h.<br />
Deshalb ich tchar.h <em>Firlefanz</em>! Das brauch man hier<br />
nicht! Es reicht die Inkludierung von windows.h und damit die indirekte Inkludierung von winnt.h.<br />
Daher ist das</p>
<p>(D)Evil schrieb:</p>
<blockquote>
<p>Dann bitte auch alles daraus -.-</p>
</blockquote>
<p>Schwachsinn.</p>
<p>Aber naja genau genommen, ringen wir hier um Nichtnigkeiten :p .</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/8182">@XzenTorXz</a>:<br />
Also wenn es &quot;SEHR Langsam' ist, würde ich mir an deiner Stelle vllt nen neuen<br />
Rechner holen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> ...an nem anderen Grund kann es nämlich eigentlich nicht liegen...</p>
<p>Mal BTW: RichEdit's sind auch nicht 'perfekt', gerade für einen Text-Editor würde<br />
ich eher <a href="http://catch22.net/tuts/editor01.asp" rel="nofollow">das</a> empfehlen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1116014</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1116014</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sat, 12 Aug 2006 13:39:05 GMT</pubDate></item><item><title><![CDATA[Reply to RichEdit 2.0&#x2F;3.0 on Sat, 12 Aug 2006 16:08:50 GMT]]></title><description><![CDATA[<p>also mein pc ist bestimmt nicht zu langsam für ein Textfeld. 2 Ghz mit 2GB Ram und auch sonst läuft alles perfekt. Nur dieses blöde Richedit in der Winapi, braucht ca 5 sec. bis es sich aktualisiert. (Hab das mal in Delphi probiert, dort funzt es einfwandfrei). Wenn ich das Richedit als Extrafenster benutze, läuft es auch normal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1116117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1116117</guid><dc:creator><![CDATA[XzenTorXz]]></dc:creator><pubDate>Sat, 12 Aug 2006 16:08:50 GMT</pubDate></item></channel></rss>