How do i Paint tab conrtol?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
IN MFC... Plz guide me how can i apply a bmp on Tab control on all tabs including the upper tab label. Current application has bitmapped dialog box which is used in each tab but the label of tabs should also be bitmapped.
You have 2 options 1) You have to set the WS_OWNERDRAW style. Check the MSDN library docs for ownerdrawn controls. This allow you to draw the labels but not the empty space where there are no labels. So this option may not suit you at all. 2) If you want to customize the entire area of the tab, including borders, you have to subclass the tab control and handle WM_PAINT yourself. I strongly recommend this article that explains how to do this: http://www.codeproject.com/tabctrl/customtab.asp