共用方式為


IOleInPlaceSiteWindowless.ScrollRect(Int32, Int32, RECT[], RECT[]) Method

Definition

Enables an object to scroll an area within its in-place active image on the screen.

public:
 void ScrollRect(int dx, int dy, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ pRectScroll, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ pRectClip);
public:
 void ScrollRect(int dx, int dy, Platform::Array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ pRectScroll, Platform::Array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ pRectClip);
void ScrollRect(int dx, int dy, std::Array <Microsoft::VisualStudio::OLE::Interop::RECT> const & pRectScroll, std::Array <Microsoft::VisualStudio::OLE::Interop::RECT> const & pRectClip);
public void ScrollRect (int dx, int dy, Microsoft.VisualStudio.OLE.Interop.RECT[] pRectScroll, Microsoft.VisualStudio.OLE.Interop.RECT[] pRectClip);
abstract member ScrollRect : int * int * Microsoft.VisualStudio.OLE.Interop.RECT[] * Microsoft.VisualStudio.OLE.Interop.RECT[] -> unit
Public Sub ScrollRect (dx As Integer, dy As Integer, pRectScroll As RECT(), pRectClip As RECT())

Parameters

dx
Int32

[in] Amount to scroll on the x-axis.

dy
Int32

[in] Amount to scroll on the y-axis.

pRectScroll
RECT[]

[in] Rectangle to scroll, in client coordinates of the containing window. NULL means the full object.

pRectClip
RECT[]

[in] Rectangle to clip to as defined for the Windows API function. Only pixels scrolling into this rectangle are drawn. Pixels scrolling out are not. If this parameter is NULL, the rectangle is not clipped.

Remarks

For information on the COM interface, see IOleInPlaceSiteWindowless::ScrollRect

Applies to