Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Child window not disabled until resize
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Child window not disabled until resize

 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: 865
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Child window not disabled until resize
    Posted: 05 November 2019 at 4:55pm
For some reason, when setting a pane's enable state to, say, xtpPaneEnableActions, the child window stays enabled until the user resizes it. I see this when the pane is floating and we call SetEnabled(xtpPaneEnableActions). What the user sees as the mouse moves over controls in the child window is that the controls are active. But, resize the floating frame and they are no longer active. The reason is that CXTPDockingPane::OnSizeParent has to be called because that is where EnableWindow is called to disable the child window (if the xtpPaneEnableClient bit isn't set).

Why wait until the user resizes the pane? I went ahead and added calls to EnableWindow when we set xtpPaneEnableActions or set xtpPaneEnabled to handle floating panes.

Just wondering if there is some reason this isn't done when calling SetEnabled().
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.125 seconds.