Overlay Drawing in CScrollView – Part 2

As shown in the previous article, drawing in a fixed position on a scroll view rises some problems. We thought at tree possible solutions: Use layered windows. This is quite good but relatively complicated and still rises problems, especially in MDI applications. By curiosity or just for fun, you can download a demo here: Overlay … Read more

Overlay Drawing in CScrollView – Part 1

The problem If we want to make a simple image viewer with scroll capability, CScrollView MFC class is great. Let’s say, we have a CBitmap object in the document class, that keeps the image to be displayed. All we have to do in the view’s class (derived from CScrollView) is something like this: Override CScrollView::OnUpdate virtual … Read more