Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SCROLLINFO" in [All]

user32

. .
Summary
.

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)

.
Documentation
.
SeeAlso
.
SeeAlso
.

static extern TODO ScrollInfoMask(TODO);

.

Declare Function ScrollInfoMask Lib "user32.dll" (TODO) As TODO

.
Documentation
[ScrollInfoMask] on MSDN
.
Summary
.

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 );

.
Documentation
[SetScrollInfo] on MSDN
.
SeeAlso
.
SeeAlso

Enums

.
Summary
ScrollInfoMask - Scroll information Mask
.

public enum ScrollInfoMask : uint

.

Public Enum ScrollInfoMask As UInteger

.

Public Enum ScrollInfoMask

.
Documentation
[ScrollInfoMask] on MSDN

Structures

.
Summary
SCROLLINFO - Scrollbar information
.

struct SCROLLINFO

.

Structure SCROLLINFO

.

    <MarshalAs(UnmanagedType.U4)>Public fMask As ScrollInfoMask

.

Public Type SCROLLINFO

.

     fMask As ScrollInfoMask

.

ScrollInfoMask

.
Documentation
[SCROLLINFO] on MSDN

 
Access PInvoke.net directly from VS: