Bug when restoring state of docked windows
-
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!!!
-
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!!!
Why not ask it at the article discussion forum itself?
Nobody can give you wiser advice than yourself. - Cicero
-
Why not ask it at the article discussion forum itself?
Nobody can give you wiser advice than yourself. - Cicero
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!!!