Tabstop in MFC dialogs

Discussion in 'MFC' started by Abhay Kumar, Sep 26, 2009.

  1. Abhay Kumar

    Abhay Kumar New Member

    Joined:
    Sep 25, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    Read the scenario...

    There is an MFC EXE with one button, say it's MyApp.exe.
    There is an MFC Extension DLL called MyApp.dll. It contains two dialog MainDlg & ChildDlg. MainDlg contains two buttons Start & Close. ChildDlg contains two controls CheckBox & Button.

    When I run MyApp.exe, the first screen it show is its dialog with one button & parent dialog from DLL. When I click start on MainDlg, its show ChildDlg and hides MainDlg.

    Problem...
    =============
    I want to shift focus using tab key among various controls. I mean when exe starts the focus is on its only button. When I press tab key, the focus should go to DLL's MainDlg Start button, then close button on pressing tab key. And again pressing tab key it should go to exe dialog's button.
    ===============

    I've tried a lot, but I am not able to shift focus from child dialog to parent dialog even I take pointer to parent dialog and explicitly setting the tab stop to parent dialog control. Any help would deserve great appreciation.

    Regards,
    Abhay
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice