Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. Changing Title of an SDI appliction

Changing Title of an SDI appliction

Scheduled Pinned Locked Moved ATL / WTL / STL
helptutorial
5 Posts 3 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    puneit4u
    wrote on last edited by
    #1

    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!!!

    L 1 Reply Last reply
    0
    • P puneit4u

      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!!!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try http://msdn.microsoft.com/en-us/library/eb95680d(v=vs.90).aspx[^].

      Use the best guess

      P 1 Reply Last reply
      0
      • L Lost User

        Try http://msdn.microsoft.com/en-us/library/eb95680d(v=vs.90).aspx[^].

        Use the best guess

        P Offline
        P Offline
        puneit4u
        wrote on last edited by
        #3

        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.

        L H 2 Replies Last reply
        0
        • P puneit4u

          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.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • P puneit4u

            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.

            H Offline
            H Offline
            H Brydon
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups