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. Bug when restoring state of docked windows

Bug when restoring state of docked windows

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialcsharpc++visual-studio
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.
  • L Offline
    L Offline
    lastgen
    wrote on last edited by
    #1

    related article - http://www.codeproject.com/wtl/wtldockingwindows.asp?df=100&forumid=3244&select=1705076&msg=1705076[^] QUOTE - Flying tabs are not restored properly And68rei 7:16 21 Oct '04 I played with MDIExSample.exe and discovered one troublesome bug. 1) take one of flying windows and move it outside of main window (e.g. <<1>>) 2) take another one (<<<2>>>) and attach it to first window (<<1>>), so they form tab control in separate window. 3) close the application 4) start it again. After restoring of windows' locations those 2 windows are lying one under another and don't form tab control anymore... So, restoring works fine if tab control with some windows lies inside main window, and not if outside. I have encountered the same problem in something that I am working on. I have looked at/compiled(in VS 2003.net) the source code in this article and can confirm that this docking bug occurs in this example. I'm not sure what zerozerofancy is talking about, as with my copy of stdafx.h there is no reference to sstate.h nor dwstate.h and the code in dbstate.h seems to already be "CDockWndMgrEx mgrDockWnds(m_hWnd)" Anybody know what the cause is and how to fix it?

    When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!

    R 1 Reply Last reply
    0
    • L lastgen

      related article - http://www.codeproject.com/wtl/wtldockingwindows.asp?df=100&forumid=3244&select=1705076&msg=1705076[^] QUOTE - Flying tabs are not restored properly And68rei 7:16 21 Oct '04 I played with MDIExSample.exe and discovered one troublesome bug. 1) take one of flying windows and move it outside of main window (e.g. <<1>>) 2) take another one (<<<2>>>) and attach it to first window (<<1>>), so they form tab control in separate window. 3) close the application 4) start it again. After restoring of windows' locations those 2 windows are lying one under another and don't form tab control anymore... So, restoring works fine if tab control with some windows lies inside main window, and not if outside. I have encountered the same problem in something that I am working on. I have looked at/compiled(in VS 2003.net) the source code in this article and can confirm that this docking bug occurs in this example. I'm not sure what zerozerofancy is talking about, as with my copy of stdafx.h there is no reference to sstate.h nor dwstate.h and the code in dbstate.h seems to already be "CDockWndMgrEx mgrDockWnds(m_hWnd)" Anybody know what the cause is and how to fix it?

      When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      Why not ask it at the article discussion forum itself?

      Nobody can give you wiser advice than yourself. - Cicero

      L 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        Why not ask it at the article discussion forum itself?

        Nobody can give you wiser advice than yourself. - Cicero

        L Offline
        L Offline
        lastgen
        wrote on last edited by
        #3

        I have but seeing as it's a 2 y/o article noone has replied. Or maybe it's because I smell too badly and they don't want to reply for fear of catching something?

        When I die I'd like to go peacefully in my sleep like my father, not screaming in terror like his passengers!!!

        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