Topic: HELP needed with overriding default behaviour of MFC


Author: xcaliber@netcom.com (Jerome Downey)
Date: Wed, 5 Oct 1994 12:49:21 GMT
Raw View
Hi everyone,

I need help with saving the state of windows in an application
on exit.

I'm currently using MSVC++ 1.5 with MFC 2.5.  I have an MDI
application that needs to save its state when it exits.  By
state, I mean 1) the position, size and normal/minimized/maximized
state of the main window, 2) the number of open MDI child windows,
3) the position, size and normal/minimized/maximized state of them
all (hopefully in z-order) and some arbitrary parameters for them
all.  Of course, they should read back their state and recreate
themselves on a subsequent startup.

Ideally, I would like to create overridden member functions for
saving and restoring the state to and from the application's INI
file.  I have something of the sort in place now.  I am having
trouble, however, with querying all the parameters from the Windows
API (wrappers) at save time, and overriding the default size/state
on creation.

I'm  sure almost all of you have come across this issue before. So
if there's a standard way of doing this, I'd love to hear of it.
If not, any ideas?

Thanks in advance.
_____________
vipul m. shah
xcaliber@netcom.com
i love my job and it shows.  just ask my wife.
--
                                             Jerome Downey
                                             XCaliber Trading Systems, Inc.
                                             xcaliber@netcom.com