ScrollWindowEx

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Liu

    ScrollWindowEx

    Hi, I am having problem to scroll only a partion of a window using the
    ScrollWindowEx api function. The code is below and any help is pleased.
    Thanks in advance.


    [DllImport("user 32.dll")]
    private extern int ScrollWindowEx (IntPtr handle, int dx, int dy, Rectangle
    lprcScroll , Rectangle lprcClip, IntPtr hrgnUpdate, out Rectangle
    lprcUpdate, int fuScroll);



    Rectangle rt;
    // This works
    ScrollWindowEx( Handle, 0, 30, Rectangle.Empty , Rectangle.Empty , IntPtr.Zero,
    out rt, 0);

    // This doesn't work
    ScrollWindowEx( Handle, 0, 30, new Rectangle(20, 20, ClientSize.Widt h,
    ClientSize.Heig ht), Rectangle.Empty , IntPtr.Zero, out rt, 0);




Working...