-
MFC MDI Load New View
I am building a MFC MDI App.
My App has a tree ctrl that i would like to load new views with.
How can i load them from my tree ctrl.
When i double click on the tree i have a funtion whcih currently displays the selected item.
From here i would like to open/create a new view.
I have overridden OnFileOpen in my App Class
Code:
void CStaExApp::OnFileOpen()
{
OutputDebugString("CStaExApp::OnFileOpen");
CWinApp::OpenDocumentFile("70CP06.txt");
}
When i select File New from the menu this runs and opend a new view with the file lsited.
Basically i would like to call this from my treectrl click function.
Once i can call it, i would change it to send in the selected file.
Thanks
Mike Wilson