Given two or more visible MDI child windows, how can one force the
focus to go to a specific one or the other from an action within a
third non-MDI modal window which then closes so that mouse wheel
events or other actions requiring the focus go to the correct window?
I tried keeping copies of the child window's handles and calling
Windows.SetFocus(Child.handle) for them from the non-MDI window but
that has no effect, nor does a direct Child.SetFocus and neither does
SetActiveWindow(Child.handle) although the Child.Active property for
each window reports its correct state.
result := SendMessage(Child.Handle, WM_ACTIVATE, 0, WA_ACTIVE);
returns zero which according to the SDK help is supposed to mean that
the message was sent (and received ?) properly also has no visible
effect on the caption bar of the desired child window.
I couldn't find anything useful in a search without a filter of the
January 2006 MSDN DVD on this.
What am I doing wrong?
Irwin Scollar
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi