> How can I select a tab controller automatically? My Application contains 5
> tab controls,
> I want to as soon as the application has been maximized
> (assume that you have minimized the application) the first tab control be
> selected and visualizes to the user.

If I understand your question correctly, you need to set the focus to that
place. However, I don't believe it's possible to set focus to a tab control
itself; you must set the focus to one of the controls on the page shown by
the tab control. What you can do, of course, is switch tabs on the tab
control if you need to, using

m_TabControl.SetCurSel(tab_index);

In fact, by looking that little thing up, I stand corrected: you CAN put the
focus on a tab, using

m_TabControl.SetCurFocus(tab_index);

(the above assumes you are using a CTabCtrl or a class derived from it)

If you want to know how to tell when your application has been restored from
minimized, add a handler for WM_SIZE to the window's class and look for
nType being SIZE_RESTORED in the OnSize() method the handler generates.

If this does not answer your question properly, please give us more detailed
information.

--
Jason Teagle
[EMAIL PROTECTED]




Reply via email to