c++ - MFC OnInitialUpdate never gets called -
i have cformview dynamically created @ runtime. however, weird going on, because oninitialupdate never gets called view. set breakpoint in function , never gets hit once, though can see view being displayed onscreen. problem because whenever try work view's member controls, program crashes because aren't initialized. gives? edit: can call oninitialupdate manually; don't need override it. i think might victim of this bug. workaround override oninitialupdate() , call manually, after view dynamically created. worked if first line in overridden function call parent cformview::oninitialupdate() .