Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create tab control that has button inside it's tab. Something like this[^] image.

Tab has close button added and I need something like this. I also have to enable Visual Styles.

English is not my native, so I was not able to formulate efficient search criteria for Google. I found nothing, not even a single example. All I get as a search result is adding controls to the body of the tab control via child dialog box. I found nothing on MSDN either so I decided to ask for help here.

Again, my question is:

How do you add button to the tab, like in the image above?

Thank you.
Posted

1 solution

I'm sure you can find what you need on CP KnowledgeBase[^].

Here you've got two articles:
TabCtrl[^]
Custom Tab Controls, Tabbed Frame and Tabbed MDI[^]
 
Share this answer
 
Comments
AlwaysLearningNewStuff 28-Dec-14 13:59pm    
Thank you for trying to help. I have browsed through all the links you provided but was not able to find a case I need. I just need a close button in tab, like in the image from my post. Unfortunately, all the links deal with owner drawn tabs but none adds close button to the tab control...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900