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 destroy and recreate a new view

How to destroy and recreate a new 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.
  • K Offline
    K Offline
    klphua
    wrote on last edited by
    #1

    Let's say I have a view, and I make some checking in CView::OnInitialUpdate() and found out it can't load some resources for some reason, so I decide to destroy the view and try to reopen the view. How to close the view and then recreate a new view, all happening inside OnInitialUpdate() ? (is it possible?) Thanx in advance...

    S 1 Reply Last reply
    0
    • K klphua

      Let's say I have a view, and I make some checking in CView::OnInitialUpdate() and found out it can't load some resources for some reason, so I decide to destroy the view and try to reopen the view. How to close the view and then recreate a new view, all happening inside OnInitialUpdate() ? (is it possible?) Thanx in advance...

      S Offline
      S Offline
      Swinefeaster
      wrote on last edited by
      #2

      I don't know if this helps, but you can dynamically replace a view... http://www.codeproject.com/splitter/usefulsplitter.asp Cheers, swine Check out Aephid Photokeeper, the powerful digital photo album solution at www.aephid.com.

      K 1 Reply Last reply
      0
      • S Swinefeaster

        I don't know if this helps, but you can dynamically replace a view... http://www.codeproject.com/splitter/usefulsplitter.asp Cheers, swine Check out Aephid Photokeeper, the powerful digital photo album solution at www.aephid.com.

        K Offline
        K Offline
        klphua
        wrote on last edited by
        #3

        it helps a lot. thanx

        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