color tabcontrol

Started by Marc Van Cauwenberghe, May 02, 2005, 02:30:49 PM

Previous topic - Next topic

Marc Van Cauwenberghe

Hello,

is there a firefly method to color a tabcontrol?

Marc

TechSupport

There is no simple way to recolor a Tab Control (from what I have read). A search on POFFS reveals that using owner drawn methos is the best route. This would involve setting the TCS_OWNERDRAWFIXED style and doing the painting via messages sent to the parent of the tab control.

Do a search on "TCS_OWNERDRAWFIXED" in POFFS and you'll see what I mean. It is not as easy as it should be.

Bern Ertl posted code in the PB Source Code forum in June 2002 that shows how this is done.