I have a 800x600 image inside a 240x320 picturebox and I want to use the scrollbars to move around the image... I found this function in the API, but I don't know if it's for that... besides there are 2 parameters that I don't understand. Could someone give a hint about this...

The function is :

Declare Function ScrollDC Lib "user32" (ByVal hdc As Long, ByVal dx As Long, ByVal dy As Long, lprcScroll As RECT, lprcClip As RECT, ByVal hrgnUpdate As Long, lprcUpdate As RECT) As Long

The parameters as I see them :

hdc : Handle of the picture box (easy)
dx : Numbers of pixels that I want to move horizontally (Positive is right, Negative is left)
dy : Numbers of pixels that I want to move vertically (Positive is down, Negative is up)
lprcScroll : A rectangle that defines the full area of the image
lprcClip : A rectangle that defines the area of the image that I
see
hrgnUpdate : I don't know !!!!!!!!!!
lprcUpdate : I don´t know !!!!!!!!!!!!