Udostępnij za pośrednictwem


CPane::OnBeforeDock

Called by the framework when the pane is about to dock.

virtual BOOL OnBeforeDock(
    CBasePane** ppDockBar,
    LPCRECT lpRect,
    AFX_DOCK_METHOD dockMethod
);

Parameters

  • [in] [out] ppDockBar
    Specifies the pane that this pane is docking to.

  • [in] lpRect
    Specifies the docking rectangle.

  • [in] dockMethod
    Specifies the docking method.

Return Value

TRUE if the pane can be docked. If the function returns FALSE, the docking operation will be aborted.

Remarks

This method is called by the framework when a pane is about to be docked. You can override this method in a derived class if you want to perform any processing before a pane is finally docked.

Requirements

Header: afxPane.h

See Also

Reference

CPane Class

Hierarchy Chart