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. MDI Frame Title

MDI Frame Title

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
2 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.
  • S Offline
    S Offline
    Simon Steele
    wrote on last edited by
    #1

    Hi, I have an MDI application, and the window title is shown as title - [filename] when a child is maximised. I want to be able to change this display to look like: filename - title MFC does this, but I can't seem to find how to do it in plain WinAPI or WTL. I've tried overriding WM_GETTEXT but I never get that message?! Any ideas? thanks, Simon. -- Simon Steele Programmers Notepad - http://www.pnotepad.org/

    G 1 Reply Last reply
    0
    • S Simon Steele

      Hi, I have an MDI application, and the window title is shown as title - [filename] when a child is maximised. I want to be able to change this display to look like: filename - title MFC does this, but I can't seem to find how to do it in plain WinAPI or WTL. I've tried overriding WM_GETTEXT but I never get that message?! Any ideas? thanks, Simon. -- Simon Steele Programmers Notepad - http://www.pnotepad.org/

      G Offline
      G Offline
      G Steudtel
      wrote on last edited by
      #2

      Hi in your view use code like this GetDocument()->SetTitle(strTitel); where strTitel is a CString variable containing the text to display. Of course, you also can set the title directly. G. Steudtel

      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