DM_RESETSCROLL

The DM_RESETSCROLL message is sent by a dialog box to reset scroll information when the dialog box redoes the re-layout of child controls after the Windows CE WM_INITDIALOG message is sent. A dialog box does not need to send this message if it does all layout of child controls at or before the WM_INITDIALOG message is sent.

The DM_RESETSCROLL message is supported only if the dialog box has the WS_VSCROLL style.

Syntax

DM_RESETSCROLL 
  wParam = (WPARAM)(BOOL) bScroll;
  lParam = (LPARAM)(BOOL) bComp;

Parameters

  • wParam
    Boolean value; TRUE to scroll back to top if user scrolled dialog box and FALSE to leave dialog box in position that user scrolled.
  • lParam
    Boolean value; TRUE to recompute scroll information and FALSE to use previously computed scroll information.

Return Values

Returns non-zero if successful.

Requirements

Smartphone Platforms: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: winuserm.h

See Also

The WM_INITDIALOG and WM_GETDLGCODE messages in the Microsoft Windows CE .NET 4.2 help system.

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.