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. New Document MDI

New Document MDI

Scheduled Pinned Locked Moved C / C++ / MFC
help
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.
  • R Offline
    R Offline
    rahulv
    wrote on last edited by
    #1

    :( Hi! I was wondering if you can override the default functionality for OnFileNew and OnFileOpen to have your document's view open in only one child window as it happens in an SDI application. More clarification: When we create an MDI application we get a child frame window which gets the view inside it. If we have to say FIle New then I would like to replace the existing view in the same child window with the new one. Yeah an interesting quesion is why am i going into all the troubles of MDI when this is the functionality of an SDI application, but actually I have another document template also within this application. Can somebody help me out with this. thanks rahul

    N 1 Reply Last reply
    0
    • R rahulv

      :( Hi! I was wondering if you can override the default functionality for OnFileNew and OnFileOpen to have your document's view open in only one child window as it happens in an SDI application. More clarification: When we create an MDI application we get a child frame window which gets the view inside it. If we have to say FIle New then I would like to replace the existing view in the same child window with the new one. Yeah an interesting quesion is why am i going into all the troubles of MDI when this is the functionality of an SDI application, but actually I have another document template also within this application. Can somebody help me out with this. thanks rahul

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      I am sure I have seen articles on this either here or on CodeGuru. Have you had a good look around the Doc/View articles? It really shouldn't be difficult. You can overide OnFileNew etc. and do whatever you want with docs and views. Neville Franks, Author of ED for Windows. www.getsoft.com Make money with our new Affilate program

      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