Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   Tabstop in MFC dialogs (http://www.go4expert.com/forums/tabstop-mfc-dialogs-t19562/)

Abhay Kumar 26Sep2009 15:02

Tabstop in MFC dialogs

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.


All times are GMT +5.5. The time now is 20:39.