![]() |
XTP_DPN_SHOWWINDOW behavior changed in v13 |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 11 February 2009 at 4:58am |
The behavior might be the same in v12, but I encountered it in v13. Let me clarify.
XTP_DPN_SHOWWINDOW is not sent when the the pane's rectangle is empty (IsRectEmpty). This should be documented as it could lead to strange behavior:
1) The user changes the size of a pane to zero-height and closes the application.
2) Pane is saved to the Registry.
3) Application is opened and the pane read from the Registry.
4) Since the child-window is created and attached in OnDockingPaneNotify(), the child will not be created until the pane is explicitly resized!
Perhaps create/attach should always be made in OnCreate() instead of OnDockingPaneNotify()?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I compared sources with 12.1.1 - nothing that can change this behavior.
XTP_DPN_SHOWWINDOW called when pane become visible.
You can add method that attach panes and call it from CMainFrame::Create and from NotifyHandler.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
You check for empty rectangles in the ShowWindow() call. Can you please tell me how to make certain pane-children attached explicitly? When I call GetChild() from my other pane-manager, the child window must already be set! |
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Upgraded to v13.0.0 from v12.1.1.
pMainPane = GetMainFrame().GetPaneManager().FindPane(IDR_EXISTING_PANE);
CWnd* pWndChild = pMainPane->GetChild(); // Returns NULL when pane has not been sized (zero-height in this case)!
It seems XTP_DPN_SHOWWINDOW is not sent when the pane has zero-height. Is this by design?
Anyway, such changes should be thoroughly documented!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |