[MDI] Detecting document switch
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I'm working on an MDI application. Now, I have this side bar which displays certain information about a document. Each time I switch to a different document I handle the view change message in the corresponding view and from there I update the sidebar. This worked great. But some new feature in the program demands I put in an extra view for each document/frame (a CListView to be exact). In the toolbar the user can switch between these views. Now the problem arises, that once the view changes, I get a new message in the sidebar saying the document has switched, whereas in real, the document hasn't switched at all. I was wondering whether there would be a different way to detect if the user went to a different document