Keep window topmost in MDI application
Posted on 1999-01-14
I am creating an application that will display one or more MDI Child forms. I want to be able to display a Search form that will:
1. Be a child of the MDI parent form
2. Stay on top of the child forms
3. Not stay on top of other applications that may be running.
I have tried the SetParent API call to achieve item 1, but when the Search form is unloaded, it also hides the toolbar on the MDI Main form.
I have also used SetWindowPos to achieve item 2, but the Search form remains on top of other applications.
I have also tried using Zorder in the activate and deactivate events on all forms, but the blinking that occurs is unacceptable.