Sign in to follow this  
SeferCanErgun

[C++]Win32 api Tab Problem

Recommended Posts

SeferCanErgun    100
Hi,
I created 2 tabs.and i need add checkbox,textbox...etc to them.but as I see we cant add them to directly to tabs.and I searched and I found solition.Solition is create an parent window to tabs area and add checkbox..etc to that window.But how am I going to do that?I searched so much but I didnt find any solition.and I tried it myself but it doen't work.I'm not sure what am I going to do?

Please Help,
Thanks.

Share this post


Link to post
Share on other sites
wqking    761
As far as I remember, Tab doesn't provide container for each tab.
So you need to create child window as each tab (or called page) as the container, and add controls to the container.
And you need to listen to tab change event, in that hide current active page then show the new page for the new tab.

Share this post


Link to post
Share on other sites
SeferCanErgun    100
I writed to title.I'm using c++ and I dont use any framework.and I'm usingVisual C++ 2008.and thanks for help.but still my problem isnt gone.Which paramatres I must use?which class name I must use?

Share this post


Link to post
Share on other sites
ApochPiQ    23000
I'm sorry, but without any information at all on what you are doing or how you are doing it, there's really nothing we can say. We can't read your mind [img]http://public.gamedev.net/public/style_emoticons/default/wink.gif[/img]

Share this post


Link to post
Share on other sites
0x3a    109
I've played around with the Win32 API Tab thing before and I must say it sucks. Really, really bad. I'd say jump over to Qt or make your own control with MFC because the default one is big letdown and not nice to work with at all.

Share this post


Link to post
Share on other sites
Aardvajk    13207
Thing to understand, as has been said, is that tab control is not designed to manage the actual pages for you. It is down to you to actually create, destroy, display and hide other windows in response to tab events.

Much of Win32 API is like this. The writers cannot really predict all the possible uses so have to design the library in a way that will provide functionality without overhead in cases where multiple pages are not actually required.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this