MDI Children forms

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
 
G

g

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top