CPane::UpdateVirtualRect

Updates the virtual rectangle.

void UpdateVirtualRect();
void UpdateVirtualRect(
   CPoint ptOffset
);
void UpdateVirtualRect(
   CSize sizeNew
);

Parameters

  • [in] ptOffset
    A CPoint object that specifies an offset by which to shift the pane.

  • [in] sizeNew
    A CSize object that specifies a new size for the pane.

Remarks

The first overload sets the virtual rectangle by using the current position and size of the pane.

The second overload shifts the virtual rectangle by the amount that is specified by ptOffset.

The third overload sets the virtual rectangle by using the current position of the pane and the size that is specified by sizeNew.

Requirements

Header: afxpane.h

See Also

Reference

CPane Class

Hierarchy Chart