ITextHost::TxScrollWindowEx method

Requests the text host to scroll the content of the specified client area.

Syntax


void TxScrollWindowEx(
  [in]  INT dx,
  [in]  INT dy,
  [in]  LPCRECT lprcScroll,
  [in]  LPCRECT lprcClip,
  [in]  HRGN hrgnUpdate,
  [in]  LPRECT lprcUpdate,
  [in]  UINT fuScroll
);

Parameters

dx [in]

Type: INT

Amount of horizontal scrolling.

dy [in]

Type: INT

Amount of vertical scrolling.

lprcScroll [in]

Type: LPCRECT

The coordinates for the scroll rectangle.

lprcClip [in]

Type: LPCRECT

The coordinates for the clip rectangle.

hrgnUpdate [in]

Type: HRGN

Handle to the update region.

lprcUpdate [in]

Type: LPRECT

The coordinates for the update rectangle.

fuScroll [in]

Type: UINT

Scrolling flags. This parameter can be one of the following values.

ValueMeaning
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 lprcScroll 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 lprcScroll rectangle, even if they do not move.

SW_SMOOTHSCROLL

Windows 98/Me, Windows 2000/XP: Scrolls using smooth scrolling. Use the HIWORD portion of the fuScroll parameter to indicate how much time the smooth-scrolling operation should take.

 

Return value

There is no return value.

Remarks

This method is only valid when the control is in-place active; calls while the control is inactive may fail.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextHost
Conceptual
Windowless Rich Edit Controls
Other Resources
RECT

 

 

Community Additions

ADD
Show:
© 2014 Microsoft