locked
Switching between tabs using the Main Menu...?? RRS feed

  • Question

  • Hi,
    with reference to the article by "Zoran M. Todorovic"--"A Visual Framework:Controls,tabs and splitters" on the site CodeProject as well as CodeGuru,I have created an application with the help of this article.There are 2 tabs on my main window(SDI based MFC-VC++ dot Net-2003 app),and I would like to switch between the two using the main menu,some option like-"Switch:tab1,tab2 etc".If the user clicks on Switch,he has the option of selecting either tab1 or tab-2.
    The corresponding tab should come to focus on selection from the menu.
    I would be extremely grateful if any one could help me on this.
    Thank You very much.:-O
    Wednesday, June 21, 2006 3:58 PM

Answers

  • ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vclib/html/14a2b63e-b344-4c83-8ce6-79a2766035a1.htm

     

    SetCurFocus.

     

    MSDN has all the info you need.

    Wednesday, June 21, 2006 4:29 PM