Sign in to follow this  
Alkan

Tab order with MFC tab control

Recommended Posts

I have implemented some configuration dialog on an application at work which makes use of tabs. The application is a C++ application using MFC for the user interface. I used a tab control in the parent dialog and child dialogs that i show or hide depending on the selected tab.This works fine except that, when trying to navigate in one of the pages using the tab key, you can't cycle out or in the child. Is there a way to solve this ?

Share this post


Link to post
Share on other sites
You need to give your children dialogs the WS_EX_CONTROLPARENT style. This is easily done using the property page of the dialog in the resource editor. There is a property called Controle parent, make sure it is true for all your pages. Also, make sure the dialogs are children of the parent dialog and not the tab control. Edited by Laval B

Share this post


Link to post
Share on other sites
[quote name='Laval B' timestamp='1349083485' post='4985693']
There is a property called Controle parent, make sure it is true for all your pages.
[/quote]


Thanks, it worked !

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