GweBypassCoredllThunk_t::ScrollWindowEx_I (Windows Embedded CE 6.0)
1/6/2010
This method scrolls the content of the client area of the specified window.
Syntax
static int WINAPI ScrollWindowEx_I(
HWND hwndThis,
int dx,
int dy,
CONST RECT* prcScroll,
CONST RECT* prcClip,
HRGN hrgnUpdate,
LPRECT prcUpdate,
UINT flags
);
Parameters
- hwndThis
[in] Handle to the window where the client area is to be scrolled.
- dx
[in] Integer that specifies the amount, in device units, of horizontal scrolling. This parameter must be a negative value to scroll to the left.
- dy
[in] Integer that specifies the amount, in device units, of vertical scrolling. This parameter must be a negative value to scroll up.
- prcScroll
Pointer to the RECT structure specifying the portion of the client area to be scrolled. If this parameter is NULL, the entire client area is scrolled.
- prcClip
Pointer to the RECT structure containing the coordinates of the clipping rectangle. Only device bits within the clipping rectangle are affected. Bits scrolled from the outside of the rectangle to the inside are painted; bits scrolled from the inside of the rectangle to the outside are not painted.
- hrgnUpdate
Handle to the region that is modified to hold the region invalidated by scrolling. This parameter may be NULL.
- prcUpdate
Pointer to the RECT structure receiving the boundaries of the rectangle invalidated by scrolling. This parameter may be NULL.
flags
[in] Unsigned integer that specifies flags that control scrolling. The following table shows the possible values.Value Description SW_ERASE
Erases the newly invalidated region by sending a WM_ERASEBKGND message to the window when specified with the SW_INVALIDATE flag.
SW_INVALIDATE
Invalidates the region identified by the hrgnUpdate parameter after scrolling.
SW_SCROLLCHILDREN
Scrolls all child windows that intersect the rectangle pointed to by the prcScroll parameter. The child windows are scrolled by the number of pixels specified by the dx and dy parameters. The system sends a WM_MOVE message to all child windows that intersect the prcScroll rectangle, even if they do not move.
Return Value
COMPLEXREGION indicates that the region consists of more than one rectangle. ERROR indicates that an error occurred. NULLREGION indicates that the region is empty. SIMPLEREGION indicates that the region is a single rectangle. To get extended error information, call GetLastError.
Remarks
This method is an internal version of the ScrollWindowEx function.
Only one of the dx and dy parameters can be nonzero.
If the SW_INVALIDATE and SW_ERASE flags are not specified, GweBypassCoredllThunk_t::ScrollWindowEx_I does not invalidate the area that is scrolled from. If either of these flags is set, GweBypassCoredllThunk_t::ScrollWindowEx_I invalidates this area. The area is not updated until the application calls the GweBypassCoredllThunk_t::UpdateWindow_I method or retrieves the WM_PAINT message from the application queue.
If the SW_SCROLLCHILDREN flag is specified, the system does not properly update the screen if part of a child window is scrolled. The part of the scrolled child window that lies outside the source rectangle is not erased and is not properly redrawn in its new destination. To move child windows that do not lie completely within the rectangle specified by prcScroll, use the DeferWindowPos function. The cursor is repositioned if the SW_SCROLLCHILDREN flag is set and the caret rectangle intersects the scroll rectangle.
If the window has the WS_CLIPCHILDREN style, the returned areas specified by hrgnUpdate and prcUpdate represent the total area of the scrolled window that must be updated, including any areas in child windows that need updating.
All input and output coordinates (for prcScroll, prcClip, prcUpdate, and hrgnUpdate) are determined as client coordinates, regardless of whether the window has the CS_OWNDC or CS_CLASSDC class style.
Requirements
Header | gwebypasscoredllthunk.hpp |
Windows Embedded CE | Windows CE .NET 4.0 and later |
See Also
Reference
GweBypassCoredllThunk_t
DeferWindowPos
ScrollWindowEx
Gdi::ScrollDC_I
GweBypassCoredllThunk_t::UpdateWindow_I
RECT