'Windows API to smoothly scroll a bitmap horizontally
I want to display on a Windows PC screen an image that scrolls left, with the right generated in real time according to some sensors. There would be like 3 seconds of history across the whole screen. Something like below, but smoother, larger, not periodical, and the info drawn on the right not limited to a dot.
What's an appropriate native Windows API, or a library callable from a compiled language?

Requirements:
- works on about any PC or portable running Windows 10, even something low-end in 2015, with no special requirement on video hardware or driver, and only a fraction of it's CPU power;
- visually smooth scrolling (at least when drawing in the front-most window), which I think requires some synchronization with physical screen refresh: if my window is like 1000 pixel wide, and the refresh rate 60 Hz, I'll be scrolling like 1000/3/60 = 5 or 6 pixels per frame.
- draws in a native Windows window.
- preferably not a library (but if an open-source one like SDL2 does the job simply, I can use it, or mimic it's use of the API)
I see how to produce an in-memory bitmap in real time for what I want to display, updating only the right/current part of it, and changing where in the bitmap the left of the display starts, with switching to another bitmap (or back on the left) for wraparound. Something similar was common in 2D game programming decades ago. What I don't know is how I adjust in real time the alignment between that bitmap and the window.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
