I have an appication with a custom CMDIChildWnd. The window is split with a TreeView on the left window pane and depending on the type of data selected in the TreeView, the right pane uses the appropriate view class.
On the menu, I have added options, one is to add a selection to the Tree View. If the tree view window is the current window, the menu function works fine. If the View class in the right pane is the window in focus, the menu option is grayed out.
I added code to the View class to handle the menu, but how do I call the function in my Tree view class to actually process the code to add a selection to the tree view.