Changing Title of an SDI appliction
-
I am creating an SDI application. On Start, its title is "Untitled - MyApp". When i load a file named File1.txt using open button, then its title is changing to "File1.txt - MyApp". The Problem arise when i want to change the title without loading a file using open button. Can anybody tell me how to set the title of an SDI application. Thanks in advance!!!
-
I am creating an SDI application. On Start, its title is "Untitled - MyApp". When i load a file named File1.txt using open button, then its title is changing to "File1.txt - MyApp". The Problem arise when i want to change the title without loading a file using open button. Can anybody tell me how to set the title of an SDI application. Thanks in advance!!!
-
Try http://msdn.microsoft.com/en-us/library/eb95680d(v=vs.90).aspx[^].
Use the best guess
Thanks Richard, I have done the same thing earlier but it did not work. I think my problem lies in my applications SDI architecture.. might be my Document and View are not connected properly or they are not getting properly registered with CSingleDocTemplate Class.. Please suggest how to check whether i am following my SDI architecture properly. Thanks.
-
Thanks Richard, I have done the same thing earlier but it did not work. I think my problem lies in my applications SDI architecture.. might be my Document and View are not connected properly or they are not getting properly registered with CSingleDocTemplate Class.. Please suggest how to check whether i am following my SDI architecture properly. Thanks.
puneit4u wrote:
Please suggest how to check whether i am following my SDI architecture properly.
Read the documentation on MSDN where it is all explained. Alternatively create a new project with the Visual Studio wizard and compare with your project.
Use the best guess
-
Thanks Richard, I have done the same thing earlier but it did not work. I think my problem lies in my applications SDI architecture.. might be my Document and View are not connected properly or they are not getting properly registered with CSingleDocTemplate Class.. Please suggest how to check whether i am following my SDI architecture properly. Thanks.
puneit4u wrote:
I have done the same thing earlier but it did not work.
Keep in mind that if you set the title to something, then open a document, the framework sets the title as you describe in your original message. You can suppress this behavior by overriding a framework method. I don't have VS2010 open right now but you can figure this out by looking at the source.
Windows 8 is the resurrected version of Microsoft Bob. The only thing missing is the Fisher-Price logo. - Harvey