Click to See Complete Forum and Search --> : Scrolling Scaled Bitmaps
sdknott
August 16th, 1999, 05:36 AM
How can you implement scrolling using the CScrollView class as a parent when displaying a bitmap using CStretchDIBits? Everything I try just displays the stretched bitmap with the scroll bars, and when you try scrolling the bitmap just judders. I was able to implement scrollbars with a bitmap displayed using SetDIBitsToDevice by just using the device coordinates as the target rectangle origin, but this did not work for CStretchDIBits.
August 17th, 1999, 07:43 AM
Can you tell me how you did that ?
(Adding scroll bar to a bitmap displayed using setdibitstodevice? )
thankx
<br
sdknott
August 17th, 1999, 08:12 AM
the following code under the OnDraw function draws a bitmap (un-scaled) with working scrollbars:
<pr
August 18th, 1999, 02:22 AM
Hi
Thankx for your explanations. I still have some problems.May be once I explain it, things wld be clearer. I have a bitmap on a dlg box, which am using SetDIBitstoDevice to display. From the resource I have place a horizontal and vertical scroll bars. My plan is to trap these scrll bar images to make the image scroll.
But I am struck up there. How do I "connect" the bitmap to the scroll bars ?
Can you please expalin me how you did that in you app ?
Is the way am doing is right ? Or is there any better way of doing it ?
Thankx in advance
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.