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. How to set MDIChildFrame title case different view?

How to set MDIChildFrame title case different view?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 2 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.
  • W Offline
    W Offline
    wuxy
    wrote on last edited by
    #1

    when i use setwindowtext(),the title has often been changed automatically,why?

    C 1 Reply Last reply
    0
    • W wuxy

      when i use setwindowtext(),the title has often been changed automatically,why?

      C Offline
      C Offline
      Chambers
      wrote on last edited by
      #2

      The Child Windows of MFC use the title of the associated document as the title of the window frame (automatically). To change the title of the window frame, all you need to do is change that in the document using :

      pDoc->SetTitle(WHATEVER_YOU_WANT);

      and you should notice that the title in the window frame has been automatically updated to reflect this. P.S. make sure you get the active document (pDoc) by using the GetActiveDocument() member function of the CHILD frame or view. "When I left you I was but the learner, now I am the Master" - Darth Vader:mad:

      W 1 Reply Last reply
      0
      • C Chambers

        The Child Windows of MFC use the title of the associated document as the title of the window frame (automatically). To change the title of the window frame, all you need to do is change that in the document using :

        pDoc->SetTitle(WHATEVER_YOU_WANT);

        and you should notice that the title in the window frame has been automatically updated to reflect this. P.S. make sure you get the active document (pDoc) by using the GetActiveDocument() member function of the CHILD frame or view. "When I left you I was but the learner, now I am the Master" - Darth Vader:mad:

        W Offline
        W Offline
        wuxy
        wrote on last edited by
        #3

        thanks! now i have only one document, and three views, how i do it?

        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