On approximately 5/17/2004 2:02 AM, came the following characters from the keyboard of Jez White:
Hi,The code below shows an example of using a child window containing a bitmap which is scrolled using the scroll bars of the child window. The example uses a hooked paint message to pain directly to the child window via a memory DC. Assuming there is no problem with this example and people think it's useful I'll commit it to the samples folder today.
This looks great!The only problem I found is that when displaying a sequence of BMPs smaller than the BitMap window, the prior BMP is not cleaned to the background color. So fragments on prior displayed BMPs
bug.gif was generated by displaying first trifold.bmp, and then toc.bmp.The problem doesn't seem to happen all the time, but does happen fairly often, with changed size .bmp files. So I suspect either a timing problem, or an uninitialized variable. I haven't absorbed all the code yet, but it looks very interesting.
-- Glenn -- http://nevcal.com/ =========================== The best part about procrastination is that you are never bored, because you have all kinds of things that you should be doing.
<<attachment: bug.gif>>
<<attachment: trifold.bmp>>
<<attachment: toc.bmp>>