S
Sebastian Daser
Hi all,
I have made a similar post before, but did not get any reply.
PLEASE HELP.
I have written an application that consists of an MDI container form with
MDI Children. When an MDI child form is closed I am storing the Location
property in order to restore the window's location when a window of the same
type is opened again. This works fine as long as the user does not scroll
the client area of the MDI container.
When the user scrolls the client area I am storing wrong locations, since
the Location property of the MDI Children is relative to the upper left
corner of the visual region of the client area. But I need to determine the
Location relative to the virtual region of the client area.
In order to calculate this I would like to detect the offset of the virtual
region of the client area.
Does anyone have an idea how to achieve this?
Any help would be greatly appreciated.
Thanks,
Sebastian.
I have made a similar post before, but did not get any reply.
PLEASE HELP.
I have written an application that consists of an MDI container form with
MDI Children. When an MDI child form is closed I am storing the Location
property in order to restore the window's location when a window of the same
type is opened again. This works fine as long as the user does not scroll
the client area of the MDI container.
When the user scrolls the client area I am storing wrong locations, since
the Location property of the MDI Children is relative to the upper left
corner of the visual region of the client area. But I need to determine the
Location relative to the virtual region of the client area.
In order to calculate this I would like to detect the offset of the virtual
region of the client area.
Does anyone have an idea how to achieve this?
Any help would be greatly appreciated.
Thanks,
Sebastian.