Click to See Complete Forum and Search --> : How to scroll bitmap picture on the dialog box smoothly?


Chan Shi wing
March 12th, 1999, 09:25 PM
Dear everybody!

I create an application with a form on which a picture box and some

buttons. I want to open a bitmap file and place it on the picture box

with the scrolling left and right effect! I have tried to use Move command

but the result is not good! The picture is moving with some vibration from

left to right! Could have any method to make it move smoothly?

Thank you anybody help!

Andy Tilley
June 24th, 1999, 05:02 PM
You can use the ScrollWindow API from User32 on any control that has an hWnd. You can scroll left, right, up or down by varying the iX and iY parameters - really cool for Easter eggs in your apps :)

Be sure to call UpdateWindow straight after this call.