Desktop Functions: Smart Device Functions:
|
Search Results for "SCROLLINFO" in [All]user32
private static extern bool GetScrollInfo(IntPtr hwnd, int fnBar, ref SCROLLINFO lpsi);
Public Function GetScrollInfo(hWnd As IntPtr, _
<MarshalAs(UnmanagedType.Struct)>ByRef lpsi As SCROLLINFO) As Integer
Declare Function GetScrollInfo Lib "user32" (ByVal hWnd As IntPtr, ByVal fnBar As ScrollBarDirection, ByRef lpsi As SCROLLINFO) As Integer SCROLLINFO, SBOrientation, ScrollInfoMask
SCROLLINFO si = new SCROLLINFO();
si.fMask = (int) ScrollInfoMask.SIF_RANGE;
GetScrollInfo( RichTextBox1.Handle, (int) ScrollBarDirection.SB_HORZ, ref si );
Dim si As New SCROLLINFO
.fMask = ScrollInfoMask.SIF_PAGE
Dim lRet As Integer = GetScrollInfo(hWnd, fnBar, si) 2: GetScrollPos
static extern TODO ScrollInfoMask(TODO);
Declare Function ScrollInfoMask Lib "user32.dll" (TODO) As TODO
static extern int SetScrollInfo(IntPtr hwnd, int fnBar, [In] ref SCROLLINFO
Public Function SetScrollInfo(hWnd As IntPtr, _
<MarshalAs(UnmanagedType.Struct)>ByRef lpsi As SCROLLINFO, _
Public Declare Function SetScrollInfo Lib "user32" _
lpcScrollInfo As SCROLLINFO, _ SBOrientation, SCROLLINFO, ScrollInfoMask
SCROLLINFO scrollinfo = new SCROLLINFO();
scrollinfo.cbSize = Marshal.SizeOf( typeof( SCROLLINFO ) );
scrollinfo.fMask = Convert.ToInt32( LPCSCROLLINFO.SIF_RANGE );
scrollinfo.nMin = 0;
scrollinfo.nMax = 3; // for example the number of items in the control
SetScrollInfo( SomeControl.Handle, ( int )SBTYPES.SB_VERT, ref scrollinfo, true ); 5: SetScrollPos
EnumsStructures7: SCROLLINFO
|