views:

42

answers:

1

Hi all,

I have an MDI application that initially doesn't have the main window open. When you click on file and select new, it opens a new tab with the default file name on it.

My application should work like this, when you click on file and select new, a dialog box comes out asking for the name of the file you want to create. After clicking "Ok", the name you input on the textbox should appear on the tab.

How do you set the name on the tab?

Thanks.

A: 

You need to override CDocTemplate::SetDefaultTitle.

Mark Ransom