| | | | Browse by category |
Article ID: 854
Last updated: 05 Feb, 2008
Problem
When I have a modeless MDIDialog window, bring up a modal non-mdi dialog and close the modal dialog, the modeless mdi-dialog no longer gets the tab key.
Cause
The MDI Dialog is not getting focus when a modal non-MDI dialog is closed.
Action
This is a workaround for the problem.
When I have a modeless MDIDialog window, bring up a modal non-mdi dialog and close the modal dialog, the modeless mdi-dialog no longer gets the tab key.
Cause
The MDI Dialog is not getting focus when a modal non-MDI dialog is closed.
Action
This is a workaround for the problem.
In mdi2.cpp, in the MDIdialogProc, add this code to the WM_SETFOCUS:
case WM_SETFOCUS:
if( zAppGetAppVar(activeDialog)
!= hWnd )
zAppGetAppVar(activeDialog)=hWnd;
case WM_KILLFOCUS:
.
.
.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 854
Last updated: 05 Feb, 2008
Revision: 1
Views: 4174
Posted: 02 Sep, 1997 by
Dean J.
Updated: 05 Feb, 2008 by
Dean J.
Others in this category
Powered by KBPublisher (Knowledge base software)