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. C / C++ / MFC
  4. Untitled document/aplication?!!?!

Untitled document/aplication?!!?!

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 Posters 0 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.
  • T Offline
    T Offline
    tanarnelinistit
    wrote on last edited by
    #1

    How can I modify the Untitled "title" that apears in my SDI aplication? I modified AFX_IDS_APP_TITLE "My aplication". But on the right of it it apears Untitled like this: Untitled= My aplication. So???

    D O 2 Replies Last reply
    0
    • T tanarnelinistit

      How can I modify the Untitled "title" that apears in my SDI aplication? I modified AFX_IDS_APP_TITLE "My aplication". But on the right of it it apears Untitled like this: Untitled= My aplication. So???

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      What exactly is it that you are wanting? If you are not wanting "Untitled" in the caption, see here.


      "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

      "Judge not by the eye but by the heart." - Native American Proverb

      1 Reply Last reply
      0
      • T tanarnelinistit

        How can I modify the Untitled "title" that apears in my SDI aplication? I modified AFX_IDS_APP_TITLE "My aplication". But on the right of it it apears Untitled like this: Untitled= My aplication. So???

        O Offline
        O Offline
        ovidiucucu
        wrote on last edited by
        #3

        Serch for IDR_MAINFRAME in string table resource and insert the desired string between first and second '\n', like for example:

        MyApp\nMY COOL NEW DOCUMENT\nMyApp\n\n\nMyApp.Document\nMyApp Document

        -- modified at 9:01 Thursday 3rd August, 2006 PS. Tanar, tanar, dar de ce asa de nelinistit? ;)

        Ovidiu Cucu Microsoft MVP - Visual C++

        O 1 Reply Last reply
        0
        • O ovidiucucu

          Serch for IDR_MAINFRAME in string table resource and insert the desired string between first and second '\n', like for example:

          MyApp\nMY COOL NEW DOCUMENT\nMyApp\n\n\nMyApp.Document\nMyApp Document

          -- modified at 9:01 Thursday 3rd August, 2006 PS. Tanar, tanar, dar de ce asa de nelinistit? ;)

          Ovidiu Cucu Microsoft MVP - Visual C++

          O Offline
          O Offline
          ovidiucucu
          wrote on last edited by
          #4

          ... and moreover, if you want to write in the caption anything your muscles want, override CFrameWnd::OnUpdateFrameTitle, like for example:

          class CMainFrame : public CFrameWnd
          {
          // ...
          // Overrides
          public:
             virtual void OnUpdateFrameTitle(BOOL bAddToTitle);
          // ...
          };
          
          
          void CMainFrame::OnUpdateFrameTitle(BOOL bAddToTitle)
          {
             SetWindowText(_T("Asta-i pohta ce-am pohtit!"));
          }
          

          :)

          Ovidiu Cucu Microsoft MVP - Visual C++

          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