How to maintain different title bars' caption ?
-
hi, I have written a MDI program that can create three different views. The problem is that i have no idea on how to maintain each view's title bar's caption. I use back the same doc class for all the view class. I did something like this: CDocument * pDoc; pDodc->SetTitle("HTML View");//for each different view, different caption When i create a new different view (with other views created earlier), the title bars' caption of all the previously created views follow the caption of the new view. Any idea on how to avoid such situation?? Thanks in advance. :confused: leonwoo
-
hi, I have written a MDI program that can create three different views. The problem is that i have no idea on how to maintain each view's title bar's caption. I use back the same doc class for all the view class. I did something like this: CDocument * pDoc; pDodc->SetTitle("HTML View");//for each different view, different caption When i create a new different view (with other views created earlier), the title bars' caption of all the previously created views follow the caption of the new view. Any idea on how to avoid such situation?? Thanks in advance. :confused: leonwoo
Overload CMDIChildWnd::OnUpdateFrameTitle() and in that method, set the text to whatever you like. --Mike-- http://home.inreach.com/mdunn/ The preferred snack of 4 out of 5 Lounge readers.
-
Overload CMDIChildWnd::OnUpdateFrameTitle() and in that method, set the text to whatever you like. --Mike-- http://home.inreach.com/mdunn/ The preferred snack of 4 out of 5 Lounge readers.
-
hi, I have written a MDI program that can create three different views. The problem is that i have no idea on how to maintain each view's title bar's caption. I use back the same doc class for all the view class. I did something like this: CDocument * pDoc; pDodc->SetTitle("HTML View");//for each different view, different caption When i create a new different view (with other views created earlier), the title bars' caption of all the previously created views follow the caption of the new view. Any idea on how to avoid such situation?? Thanks in advance. :confused: leonwoo
in the OnCreate() function of your view's frame window change the lpszWindowName parameter to what you want it to be :suss: --- "every year we invent better idiot proof systems and every year they invent better idiots"