共用方式為


CPane::OnBeforeChangeParent

Called by the framework when the parent of the pane is about to change.

virtual void OnBeforeChangeParent(
    CWnd* pWndNewParent,
    BOOL bDelay = FALSE
);

Parameters

  • [in] [out] pWndNewParent
    Specifies the new parent window.

  • [in] bDelay
    TRUE to delay the global docking layout adjustment; otherwise, FALSE.

Remarks

This method is called by the framework when the parent of the pane is about to change because the pane is being docked or floated.

By default, the pane is unregistered with the docking pane by calling CDockSite::RemovePane.

Requirements

Header: afxPane.h

See Also

Reference

CPane Class

Hierarchy Chart

CDockSite Class