CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    2

    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!

  2. #2
    Join Date
    Jun 1999
    Posts
    40

    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.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured