hi, i want to put a bitmap in a static box with BitBlt. if the bitmap is bigger than the static box, scrolling bars should appear, and the user should be able to scroll in the bitmap. how to manage that????
Posted on 2001-05-04 10:40:00 by [SaFc0n]
I haven't used/tried this method but it should get you started: Just create an ownerdrawn static control with the WS_HSCROLL and WS_VSCROLL styles set, then create an offscreen bitmap & DC for the FULL bitmap. In the handler of the WM_DRAWITEM message, use GetScrollPos to get the scroll bar's current position and then bitblt the right part from the offscreen bitmap to the control. You can use SetScrollInfo to set the min/max positions of the scrollbars. In my mosaic lesson is shown how to make an owner drawn static control. Thomas
Posted on 2001-05-04 18:49:00 by Thomas