Assuming it's an SDI app, use GetActiveView, not GetActiveWindow.
If it's MDI, use GetActiveFrame()->GetActiveView();

Read the documentation for CDocument::UpdateAllViews(). The way you're using it there makes no sense.