Scrolling the screen
-
Please what is the Visual C++ statement to make all the current window, or a specified area of the current window, scroll n pixels up or down? This is in handling the condition "case SB_THUMBTRACK:" that arises in handling a vertical scrollbar.
-
Please what is the Visual C++ statement to make all the current window, or a specified area of the current window, scroll n pixels up or down? This is in handling the condition "case SB_THUMBTRACK:" that arises in handling a vertical scrollbar.
There is no single statement. Scrolling is all about drawing the contents of your window, or other control, based on the logical position of your scroll bar. See http://msdn.microsoft.com/en-us/library/windows/desktop/bb787529(v=vs.85).aspx[^] for details of implementation.
-
There is no single statement. Scrolling is all about drawing the contents of your window, or other control, based on the logical position of your scroll bar. See http://msdn.microsoft.com/en-us/library/windows/desktop/bb787529(v=vs.85).aspx[^] for details of implementation.
If the screen window displays text, if the vertical bar's thumb is moved down a bit, so that the text on the window must be displayed n pixels higher, then it is quickest to scroll the window's existing contents up by n pixels, then I must rewrite only the bottom n rows of pixels. So please how, in a given screen area, to move every pixel upwards by n pixels?
-
If the screen window displays text, if the vertical bar's thumb is moved down a bit, so that the text on the window must be displayed n pixels higher, then it is quickest to scroll the window's existing contents up by n pixels, then I must rewrite only the bottom n rows of pixels. So please how, in a given screen area, to move every pixel upwards by n pixels?
-
You should use the
ScrollWindow
[^] function, based on the information returned by the scroll notifications.Thanks.