<?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[Transparenz funktioniert, doch updated er nicht mehr ...]]></title><description><![CDATA[<p>Hallo,</p>
<p>hier folgender Code:</p>
<pre><code class="language-cpp">if (Message==WM_CTLCOLOREDIT){ 
        switch(GetDlgCtrlID((HWND)lParam)) 
        { 
            case IDC_EDIT1: 
                SetBkMode((HDC)wParam,TRANSPARENT); // Texthintergrund auf transparent setzen 
                SetTextColor((HDC)wParam,RGB(255,255,255)); // Textfarbe auf Weiss setzen 		
				return (LRESULT)GetStockObject(NULL_BRUSH); //kein HBRUSH zurückgeben
			     break; 
            default: 
                return false; 
        } 

	}//WM_CTLCOLOREDIT
</code></pre>
<p>Meine Textfelder sind nun alle transparent, aber wenn ich etwas schreibe und den inhalt dann wieder lösche aktualisiert er nicht richtig.</p>
<p>Kann mir jemand helfen,</p>
<p>danke schonmal,</p>
<p>OHPen</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/88613/transparenz-funktioniert-doch-updated-er-nicht-mehr</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 11:19:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/88613.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Oct 2004 19:12:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Transparenz funktioniert, doch updated er nicht mehr ... on Mon, 11 Oct 2004 19:12:31 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>hier folgender Code:</p>
<pre><code class="language-cpp">if (Message==WM_CTLCOLOREDIT){ 
        switch(GetDlgCtrlID((HWND)lParam)) 
        { 
            case IDC_EDIT1: 
                SetBkMode((HDC)wParam,TRANSPARENT); // Texthintergrund auf transparent setzen 
                SetTextColor((HDC)wParam,RGB(255,255,255)); // Textfarbe auf Weiss setzen 		
				return (LRESULT)GetStockObject(NULL_BRUSH); //kein HBRUSH zurückgeben
			     break; 
            default: 
                return false; 
        } 

	}//WM_CTLCOLOREDIT
</code></pre>
<p>Meine Textfelder sind nun alle transparent, aber wenn ich etwas schreibe und den inhalt dann wieder lösche aktualisiert er nicht richtig.</p>
<p>Kann mir jemand helfen,</p>
<p>danke schonmal,</p>
<p>OHPen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/626391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/626391</guid><dc:creator><![CDATA[OHPen]]></dc:creator><pubDate>Mon, 11 Oct 2004 19:12:31 GMT</pubDate></item><item><title><![CDATA[Reply to Transparenz funktioniert, doch updated er nicht mehr ... on Mon, 11 Oct 2004 19:58:58 GMT]]></title><description><![CDATA[<p>Afaik musst du dann über ein InvalidateRect das Parent-Fenster dazu überreden sich zu aktualisieren - bin mir aber nicht ganz sicher <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/626435</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/626435</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Mon, 11 Oct 2004 19:58:58 GMT</pubDate></item><item><title><![CDATA[Reply to Transparenz funktioniert, doch updated er nicht mehr ... on Tue, 12 Oct 2004 15:37:20 GMT]]></title><description><![CDATA[<p>Danke schonmal an der Stelle, ich werd das gleich mal ausprobieren und dann bescheid sagen <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>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/626997</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/626997</guid><dc:creator><![CDATA[OHPen]]></dc:creator><pubDate>Tue, 12 Oct 2004 15:37:20 GMT</pubDate></item><item><title><![CDATA[Reply to Transparenz funktioniert, doch updated er nicht mehr ... on Tue, 12 Oct 2004 15:50:46 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>also ich hab nun folgenden Code eingefügt:</p>
<pre><code class="language-cpp">if(Message==WM_MOUSEMOVE){
		RECT rt;		
		if(GetClientRect(hwnd,&amp;rt)){
			InvalidateRect(hwnd, &amp;rt, true);
		}
		UpdateWindow(hwnd);
	}
</code></pre>
<p>Der Tip von Flenders war sehr gut den es klappt nun.<br />
Problem is nur, wie man sieht hab ich das in die WM_MOUSEMOVE eingebaut.<br />
Updated erstens nur wenn ich die Maus bewege und zweitens bekommen ich dann bei Mausbewegung ein heftiges Flackern, was ja auch nachvollziehbar ist wenn man bedenkt wie oft der Event wohl &quot;geworfen&quot; wird.<br />
Zuerst hab ich versucht das ganze beim Event WM_KEYDOWN reinzupacken, aber da tat sich garnichts.<br />
Bestimmt weiß jemand wie mir geholfen werden kann :),</p>
<p>danke wieder,</p>
<p>Gruß OHPen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/627003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/627003</guid><dc:creator><![CDATA[OHPen]]></dc:creator><pubDate>Tue, 12 Oct 2004 15:50:46 GMT</pubDate></item><item><title><![CDATA[Reply to Transparenz funktioniert, doch updated er nicht mehr ... on Tue, 12 Oct 2004 16:47:42 GMT]]></title><description><![CDATA[<p>Mach das doch direkt nach dem Ändern des Textes im darüberliegenden Control <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/627039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/627039</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 12 Oct 2004 16:47:42 GMT</pubDate></item></channel></rss>