1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tabstop in MFC dialogs

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

  1. Abhay Kumar

    Abhay Kumar New Member

    Sep 25, 2009
    Likes Received:
    Trophy Points:

    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.

    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.


Share This Page