MDI Children forms

  • Thread starter Thread starter PT
  • Start date Start date
P

PT

Hi, is it possible within an MDI based app to somehow get the Z-Orders of
windows so it can be possible to save out the positions and order so the
next time you ran the app the windows would be in the same state ? I've
tried searching about z-order but it seems a no go area and things are just
controlled by SendToXxx(), so is there any way of doing what I'm trying to
do ?

Regards,

P
 
Hi,
i have an idee how can you solve your problem

create a list that will represent z-order of your windows
when the new window is opened, add its ID to the top of the list, and when
an already opened window is focused move its ID to the top of the list
before the app is closed, serialize that list

when you open app next time, deserialize that list and start creating and
showing windows from the end of the list

Regards,
Goran J
 
Back
Top