因为MFC默认会把的配置信息保存到注册表,如果每次启动程序还原界面,需要手动关闭保存。
默认保存路径:
SetRegistryKey(_T("Local AppWizard-Generated Applications"))不影响程序性能
只有下面有写操作才会写入到这个位置:
hkey_current_user\software\Local AppWizard-Generated Applications
如果不使用注册表信息,此函数没什么用 不写入注册表
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{