共用方式為


CPane::GetVirtualRect

Retrieves the virtual rectangle of the pane.

void GetVirtualRect(
   CRect& rectVirtual
) const;

Parameters

  • [out] rectVirtual
    A CRect object that is filled with the virtual rectangle.

Remarks

When a pane is moved, the framework stores the original position of the pane in a virtual rectangle. The framework can use the virtual rectangle to restore the original position of the pane.

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::SetVirtualRect