<?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[Hintergrund eines Tabcontrols transparent machen]]></title><description><![CDATA[<p>Ich hab mal im MSDN nachgeschaut, aber es gibt nur folgende Nachrichten, die gesendet werden:</p>
<p>WM_CTLCOLORBTN<br />
WM_CTLCOLOREDIT<br />
WM_CTLCOLORDLG<br />
WM_CTLCOLORLISTBOX<br />
WM_CTLCOLORSCROLLBAR<br />
WM_CTLCOLORSTATIC</p>
<p>Keine für Tabcontrols.</p>
<p>Hier mal ein Beispielbild:</p>
<p><a href="http://img254.imageshack.us/img254/6629/tabcr1.png" rel="nofollow">http://img254.imageshack.us/img254/6629/tabcr1.png</a></p>
<p>Der graue Balken am oberen Rand sollte transparent sein.<br />
Vielen Dank im Voraus für eure Hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/184490/hintergrund-eines-tabcontrols-transparent-machen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Jul 2026 23:54:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/184490.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Jun 2007 17:50:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hintergrund eines Tabcontrols transparent machen on Fri, 15 Jun 2007 17:50:55 GMT]]></title><description><![CDATA[<p>Ich hab mal im MSDN nachgeschaut, aber es gibt nur folgende Nachrichten, die gesendet werden:</p>
<p>WM_CTLCOLORBTN<br />
WM_CTLCOLOREDIT<br />
WM_CTLCOLORDLG<br />
WM_CTLCOLORLISTBOX<br />
WM_CTLCOLORSCROLLBAR<br />
WM_CTLCOLORSTATIC</p>
<p>Keine für Tabcontrols.</p>
<p>Hier mal ein Beispielbild:</p>
<p><a href="http://img254.imageshack.us/img254/6629/tabcr1.png" rel="nofollow">http://img254.imageshack.us/img254/6629/tabcr1.png</a></p>
<p>Der graue Balken am oberen Rand sollte transparent sein.<br />
Vielen Dank im Voraus für eure Hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306767</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306767</guid><dc:creator><![CDATA[Der Player]]></dc:creator><pubDate>Fri, 15 Jun 2007 17:50:55 GMT</pubDate></item><item><title><![CDATA[Reply to Hintergrund eines Tabcontrols transparent machen on Sat, 16 Jun 2007 06:20:48 GMT]]></title><description><![CDATA[<p>Is zwar net die beste lösung aber must du selber weg zeichnen bsp mit SubClassing</p>
<pre><code>[cpp]
WNDPROC g_pfnTab;
//..
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK    SubclassTabProc(HWND,UINT,WPARAM ,LPARAM );
//..
LRESULT CALLBACK WndProc(HWND hWnd, UINT uiMsg, WPARAM wParam, LPARAM lParam)
{
  switch(uiMsg)  
  {
//..
hTab = CreateWindow(WC_TABCONTROL,TEXT(&quot;&quot;),
                    WS_VISIBLE | WS_CLIPSIBLINGS | 
                    WS_CHILD | WS_EX_TRANSPARENT ,
      		  20, 20, 350, 300,
  		 hWnd, 0, hInst, NULL);
//..
g_pfnTab = reinterpret_cast&lt;WNDPROC&gt;(SetWindowLongPtr(hTab/*Dein TabCtrl*/,GWL_WNDPROC,reinterpret_cast&lt;LONG_PTR&gt;(SubclassTabProc)));
//..
LRESULT CALLBACK SubclassTabProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
	COLORREF     TabBGColor    = RGB(255,255,255),
	             TabTextColor  = RGB(0,0,0);

	if (uMsg==WM_PAINT)
	{
		LRESULT l = CallWindowProc(g_pfnTab,hwnd,uMsg,wParam,lParam);

		HDC hdc = GetDC(hwnd);
		COLORREF cr = GetSysColor(COLOR_BTNFACE);
		SelectObject(hdc,g_hbrBkgnd);
		RECT r;
		GetClientRect(hwnd,&amp;r);
		ExtFloodFill(hdc,r.right-3,3,cr,FLOODFILLSURFACE);
		SelectObject(hdc,GetStockObject(WHITE_BRUSH));
		ReleaseDC(hwnd,hdc);
		return l;
	}
	return CallWindowProc(g_pfnTab,hwnd,uMsg,wParam,lParam);
}[/cpp]
</code></pre>
<p>aja wenn einer ne bessere lösung bitte Posten wüste sie auch gern <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="😃"
    /><br />
MFG Ascharan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1307016</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1307016</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sat, 16 Jun 2007 06:20:48 GMT</pubDate></item><item><title><![CDATA[Reply to Hintergrund eines Tabcontrols transparent machen on Sat, 16 Jun 2007 10:01:10 GMT]]></title><description><![CDATA[<p>Danke für deine Hilfe. <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 />
Ich werde erstmal deine Methode verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1307074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1307074</guid><dc:creator><![CDATA[Der Player]]></dc:creator><pubDate>Sat, 16 Jun 2007 10:01:10 GMT</pubDate></item></channel></rss>