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.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 11 of 11
Thread: Why wont thsi mfc code work?Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |