I'm creating an MDI application with multiple maximized
MDI child forms. When a child form is open, the
title/caption is merge with the MDI's title/caption. So,
if the MDI title is "Parent" and the 3rd MDI child
is "Child 3", then when the 3rd MDI child is opened, the
title becomes "Parent [Child 3]".
However, when child 3 is closed, the MDI title doesn't go
back to what it was before. It still says "Parent [Child
3]".
Is there anyway to force a refresh/repaint on the MDI
parent after a child has been closed?
Thanks.
Nick
Magnus Krisell - 31 Jan 2005 19:52 GMT
> I'm creating an MDI application with multiple maximized
> MDI child forms. When a child form is open, the
[quoted text clipped - 9 lines]
> Is there anyway to force a refresh/repaint on the MDI
> parent after a child has been closed?
Hi Nick,
I implemented this by handling the MdiChildActivate event of the parent
form and checking the ActiveMdiChild property. There may be a better
way, but at least it works.
- Magnus