This section describes the changes you can make to an application's main window procedure to enable a user to scroll text. The example in Example of Scrolling Text creates and displays an array of text strings and processes WM_HSCROLL and WM_VSCROLL messages generated by the scroll bars so that the user can scroll text both vertically and horizontally.