共用方式為


CPane::SetVirtualRect

Sets the virtual rectangle of the pane.

void SetVirtualRect(
   const CRect& rect,
   BOOL bMapToParent = TRUE
);

Parameters

  • [in] rect
    A CRect object that specifies the virtual rectangle to be set.

  • [in] bMapToParent
    Specify TRUE if rect contains points relative to the parent window.

Remarks

A virtual rectangle stores the original position of a pane when it is moved. The framework can use the virtual rectangle to restore the original position.

Do not call methods that are related to virtual rectangles unless you are moving panes programmatically.

Requirements

Header: afxpane.h

See Also

Reference

CPane Class

Hierarchy Chart

CPane::GetVirtualRect