A usual MFC SDI application has a main frame window and a MFC MDI application has a main frame and additional child frame windows. The classes presented here make these frame windows to remember their last positions on the screen, their sizes and their minimized/maximized states. So, next time the application starts, its frame windows will restore their positions, sizes and minimized/maximized states.
Download source code PersistFrames_src.zip (12 KB)
Download demo project PersistFrames_demo.zip (64 KB)