CWinAppEx::LoadWindowPlacement
Visual Studio 2012
Called by the framework when it loads the size and location of the main frame window from the registry.
virtual BOOL LoadWindowPlacement( CRect& rectNormalPosition, int& nFlags, int& nShowCmd );
By default, MFC automatically loads the previous position and state of the main frame window when the application starts. For more information about how this information is stored in the registry, see CWinAppEx::StoreWindowPlacement.
Override this method if you want to load additional information about the main frame window.