As usual while waiting for the next release - don't forget to check the nightly builds in the forum.
GetProjectManager().GetProject(0).SetTitle(_T("Collect_keys_WithThread"));GetProjectManager().GetProject(0).GetBuildTarget(0).SetTitle(_T("Debug x86"));GetProjectManager().GetProject(0).GetBuildTarget(0).SetModified(true);GetProjectManager().GetProject(0).SetModified(true)
Have you tried to call the RebuildTree method of the ProjectManager?