Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - ShowPane bug in 13.2.1
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ShowPane bug in 13.2.1

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: ShowPane bug in 13.2.1
    Posted: 01 February 2010 at 10:26am
I know for sure that there is a bug in the Docking Pane logic. Please look at this before releasing the next version. (I have no time creating a full sample at the moment.)
 
1) Create panes A and B.
2) Hide pane A. Disable pane A.
4) Create layout B' (only B visible).
5) Show pane A. Enable pane A. Hide pane B. Disable pane B.
6) Create layout A' (only pane A visible).
7) Load layout A' (pane A is created).
 
Pane A is visible, B is hidden (with no window attached). Now I want to show B!
 
paneManager.ShowPane(B); // Generates XTPWM_DOCKINGPANE_NOTIFY message!
 
LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
    if (wParam == XTP_DPN_SHOWWINDOW)
    {
        CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;
        if (!pPane->IsValid()) // Pane B is marked as valid, which is wrong!
        {
             // Window of B is never created!
        }
    }
}
 
I'm not sure exactly how this is possible, but it only happens when creating and loading pane layouts!
 
A workaround is to pre-create the pane window in OnCreate(), but that is not a good approach!
PokerMemento - http://www.pokermemento.com/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.