Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - When do I display
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

When do I display

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

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: When do I display
    Posted: 03 October 2007 at 5:42pm
I need to hide my task panel and other windows in my docking pane when I am docked with other panes but I am not the active pane.
 
I have hooked into the notification code but I have not yet found a reliable way to use the events to know when I need to show my windows (or hide them).
 
If I am docked with multiple panes, I get the xtpPaneActionActivated action event when I click the tab for my pane. Likewise I get xtpPaneActionDeactivated when I click on another tab (if I am active). So I am almost there.
 
However, if I float the pane and then double-click it to dock it, I get a xtpPaneActionDeactivated notification. I don't get xtpPaneActionActivated unless I click in the pane. I would note that in this case I am the "top" (focused?) pane so I need to effect a dispaly (by doing a ShowWindow(SW_SHOW) on my task panel.
 
I have also found that when I click the tab of my pane that I get a XTP_DPN_SHOWWINDOW notification. However when I click another pane there is no equivalent "XTP_DPN_HIDEWINDOW" notification.
 
So I am now hiding on deactivate notification when double-clicking to dock and then showing again when getting the show window event.
 
Is there a better way to know just when I need to display my child windows (code jock task panel)?
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.141 seconds.