<?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[Farbe ändern bei Registerkarten.]]></title><description><![CDATA[<p>Wie kann ich die Farbe der Schaltflächen(Titelleiste) der Registerkarten in einer TabCtrl, bzw. PropertyPage ändern?<br />
Hab schonmal versucht ein Rectangle an diesen Stellen zu zeichnen, aber dadurch wird der Text verdeckt.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/193886/farbe-ändern-bei-registerkarten</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 03:03:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/193886.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Oct 2007 11:08:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Farbe ändern bei Registerkarten. on Mon, 01 Oct 2007 11:08:31 GMT]]></title><description><![CDATA[<p>Wie kann ich die Farbe der Schaltflächen(Titelleiste) der Registerkarten in einer TabCtrl, bzw. PropertyPage ändern?<br />
Hab schonmal versucht ein Rectangle an diesen Stellen zu zeichnen, aber dadurch wird der Text verdeckt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375868</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375868</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Mon, 01 Oct 2007 11:08:31 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe ändern bei Registerkarten. on Mon, 01 Oct 2007 11:22:52 GMT]]></title><description><![CDATA[<p>Geht nur per Owenerdraw.<br />
<a href="http://www.codeproject.com/tabctrl/customtab.asp?df=100&amp;forumid=3216&amp;exp=0&amp;select=1374472" rel="nofollow">http://www.codeproject.com/tabctrl/customtab.asp?df=100&amp;forumid=3216&amp;exp=0&amp;select=1374472</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375883</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375883</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 01 Oct 2007 11:22:52 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe ändern bei Registerkarten. on Mon, 01 Oct 2007 12:39:14 GMT]]></title><description><![CDATA[<p>Ich blicke in dem Code nicht so richtig durch, bzw. finde nicht das was ich brauche.<br />
Hier ist mein Code. Vielleicht kannst du mir dann etwas weiterhelfen?!?</p>
<pre><code class="language-cpp">void CDeviceStateDlg::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpdis)
{
	char        szTabText[100];
    RECT        rect;
    CBrush      *cbr;
    TC_ITEM     tci;

    CTabCtrl    *pTabCtrl = (CTabCtrl *)GetDlgItem(IDC_TAB);

	tci.mask        = TCIF_TEXT;
    tci.pszText     = szTabText;
    tci.cchTextMax  = sizeof(szTabText)-1; 

    pTabCtrl-&gt;GetItem(lpdis-&gt;itemID, &amp;tci);

    CDC *dc = CDC::FromHandle(lpdis-&gt;hDC);

	rect.bottom = 460;
	rect.top = 0;
	rect.left = 0;
	rect.right= 690;

	cbr = &amp;brTabColor;
    dc-&gt;FillRect(&amp;rect, cbr);

    TextOut(lpdis-&gt;hDC,
    lpdis-&gt;rcItem.left,
    lpdis-&gt;rcItem.top,
    tci.pszText,
    lstrlen(tci.pszText));	
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1375907</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375907</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Mon, 01 Oct 2007 12:39:14 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe ändern bei Registerkarten. on Mon, 01 Oct 2007 12:40:45 GMT]]></title><description><![CDATA[<p>Es werden nur diejenigen Texte der Registerkarten überschrieben die gerade nicht ausgewählt sind.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1375933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1375933</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Mon, 01 Oct 2007 12:40:45 GMT</pubDate></item></channel></rss>