MFC - how to tell when a different view is set to the active view in an MDI application

  • Thread starter Thread starter Trec Apps
  • Start date Start date
T

Trec Apps

Guest
Im trying to build a ribbon based application that handles different kinds of documents. Right now, I have two types of views and Documents in the project. Below is the list of headers for the project:

55dd336380550582a23a6ae820ffcd76._.png


The "Animate BuilderDoc.h" and "Animate BuilderView.h" files were the defaults provided by the wizard. This view inherits from CScrollView and I anticipate using that template for various shapes. The BuilderSource[View/Doc].h" files are for a second type of template (actually, three other template types that use similar resources). The View inherits from CRichEditView.

Earlier, I mentioned the ribbon. here is an image of it so far:

944a57d2e851904d7c7bf7b7bda4f762._.png


The Document tools Context is what I want to display when a view of the BuilderSource is set to the Active view.

The Application uses tabs to sort through its views. I believe the rest of the Header files are defaults.

My question is not yet how to get the context category to appear.

Right now Id like to know how I could configure the application to know when to make it appear (when a BuilderSource view is selected) . I have a feeling that there is a special message available to use. WM_MDIACTIVATE looks promising, but I dont know if that is what I want to use or, if it is, how to use it to get the target view.

Continue reading...
 
Back
Top