When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
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?