When using EnableLoadWindowPlacement(false) to prevent MFC from restoring the last known main window size and position CMDIFrameWndEx::PreCreateWindow() still reads back the last known window size and position by means of m_Impl.RestorePosition(cs)BOOL CMDIFrameWndEx::PreCreateWindow(CREATESTRUCT& cs){ m_Impl.SetDockingManager(&m_dockManager); m_Impl.RestorePosition(cs); return CMDIFrameWnd::PreCreateWindow(cs);}workaround:restore the attributes to the original value CW_USEDEFAULT: cs.cx = CW_USEDEFAULT; cs.cy = CW_USEDEFAULT; cs.x = CW_USEDEFAULT; cs.y = CW_USEDEFAULT;
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...