Re: Tab order problem



You have to set the tab control style as:

MyTabControl.ModifyStyleEx(0, WS_EX_CONTROLPARENT);

You also need to modify the dialog:

MyDialog.ModifyStyleEx(0, WS_EX_CONTROLPARENT);

"lencastro" <lencastro@xxxxxxxxx> wrote in message
news:1171436963.217642.18570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a dialog box (MAIN) with two buttons( Ok ,Cancel) and a tab
control.
In the tab control I have two tabs with corresponding pages.(page
style->child)
One of the pages contains three text boxes.

My problem is that the tab order runs within the page only and does
not go to the Ok button. Similarly, in the dialog box(MAIN), the tab
order is omitting the tab control.The focus is between 'Ok' and
'Cancel' only.

How to make this work?
Thank you...



.