How to scroll bitmap picture on the dialog box smoothly?
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!
Re: How to scroll bitmap picture on the dialog box smoothly?
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.