Win32 API -- scrollWindow help

  • Thread starter Thread starter Jason Jacob
  • Start date Start date
J

Jason Jacob

to all

I want to know how to use Win32 API -- scrollWindow, as I read the
descriptions from MSDN, it can add scrolling capability to controls.

Is it possible to apply scrollability only to a small part of the
form?

-------------
| __ |
| | | |
| -- |
|___________| only the small square is the part I need to add
scrolling

Thanks
 
Jason said:
to all

I want to know how to use Win32 API -- scrollWindow, as I read the
descriptions from MSDN, it can add scrolling capability to controls.

Is it possible to apply scrollability only to a small part of the
form?

-------------
| __ |
| | | |
| -- |
|___________| only the small square is the part I need to add
scrolling

Thanks

[DllImport("user32.dll")]
static extern bool ScrollWindow(IntPtr hWnd, int XAmount, int YAmount,
IntPtr lpRect, [In] ref RECT lpClipRect);

http://www.syncfusion.com/FAQ/WinForms/FAQ_c57c.asp#q493q

Cheers

Arne Janning
 
Thanks for your advice,
But I can't even get the pointer value (IntPtr returned is always 0
!?), so even though compilation succeed, nothing happens ...........

I think that I may need to simulate the scrollbar control to fit into
the panel control, but the calculations is terribly difficult :-\
 
Thanks for your advice,
But I can't even get the pointer value (IntPtr returned is always 0
!?), so even though compilation succeed, nothing happens ...........

I think that I may need to simulate the scrollbar control to fit into
the panel control, but the calculations is terribly difficult :-\
 
Back
Top