Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Tells the container to scroll the view of the object by a specified number of pixels.
HRESULT Scroll(   SIZE scrollExtent);
Parameters
- scrollExtent
 [in] Number of pixels by which to scroll in the X and Y directions.
Return Values
This method supports the following return values:
| Value | Description | 
|---|---|
| S_OK | The method successfully executed the view scroll instruction. | 
| E_INVALIDARG | The method contains an invalid argument. | 
| E_UNEXPECTED | The call to the method unexpectedly failed. | 
Remarks
As a result of scrolling, the object's visible rectangle can change. If that happens, the container should give the new ClipRect to the object by calling IOleInPlaceObject::SetObjectRects. The intersection of the ClipRect and PosRect rectangles gives the new visible rectangle. See IOleInPlaceSite::GetWindowContext for a discussion of ClipRect and PosRect.
Notes to Callers
Called by an active, in-place object when it is asking the container to scroll.
Requirements
OS Versions: Windows CE 4.0 and later.
Header: oleidl.h.
See Also
Send Feedback on this topic to the authors