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. Single Document in MDI app or....

Single Document in MDI app or....

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
1 Posts 1 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.
  • L Offline
    L Offline
    luedi
    wrote on last edited by
    #1

    multiple Documents in SDI applications. Hi, I have an application that is mainly a SDI form based app. There is no sence in opening more than one document in a time. I use a technique to switch between 4 different views based on the state of the app and again, there is no need to see two of the views at the same time. I have a few ScrollView derived Ctrls on the FormView where I already had problems that mouseactivation on the ScrollView derived class will send a SetActiveView to the mainFrame. This results in unexpected program behavoir (mostly program crashes later on). For these problems I already have a workaround. Yesterday I tried to include debugging capablities using the CEditLog class with a CEditView ctrl in a CControlBar. Again I had the problem that upon activation the CeditView Window sends SetActiveView calls to the MainFrame and additionally will call CDocument::SetModified (). I choosed the EditView since I wanted to use the search / serialize capabilities, but the CEditView needs a Document, so I gave an empty CDocument to the CEditView. But this only leads to additional problems. Terminating the application while the focus is on the ControlBar leads to crashes since the View has changed and so on. I don't really want to switch to an MDI application, only to support edit capabilities or better a second CView derived window. Does anybody have similar experiences with something like this? Must I switch to an MDI app? Thanks in advance Dirk

    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