Advertisement

How do you use tab controls in MFC?

Started by May 08, 2001 08:47 AM
0 comments, last by Zeke 23 years, 9 months ago
I have tried to follow the msdn but i lose it when it gets to the TCITEM structure as it doesnt tell you how to name the tab or how to get stuff on that tab. If any one can point me to a tutorial or give me some help i would be very grateful Thanks very much
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
The tab control is just the tab part and nothing more. You have to implement windows or small docked dialogs or whatever to do the ''pages'' part yourself. You catch the TCN_SELCHANGE message when the user changes tabs, and then you show/hide the dialogs or windows approprately.

The TCITEM structure contains a string and a string length that contain the text, or name, that will appear on the tab. If you are using MFC to do it, you don''t even have to mess with TCITEM, just call CTabCtrl::InsertItem(0, "Tab Text");

Hope that helps

DSutherland

This topic is closed to new replies.

Advertisement