How apply focus to a child window with a mini title bar?

Hi,
I have a main window which has the focus (Window1.ShowModal) and which opens (under certain conditions) a child window of type “Document” (with Windows2.Show) but it is impossible to apply the focus to this window unless I click on the (mini) title bar!
I tried a lot of things without success (SetFocus, ActivateWindowMBS, self.show, etc.)
What approach to take?
Thanks.

Your main window should not be shown modally. ShowModal is for things that require user interaction to continue like ancillary dialogs.

1 Like