METHOD SetPage( nSize, lReDraw ) CLASS TScrollBar
local nFlags
DEFAULT lRedraw := .f.
// nSize = Max( 10, nSize )
if ! Empty( ::hWnd )
...
METHOD SetPage( nSize, lReDraw ) CLASS TScrollBar
local nFlags
DEFAULT lRedraw := .f.
// nSize = Max( 10, nSize )
if ! Empty( ::hWnd )
nFlags = SB_CTL
else
if ::lVertical
nFlags = SB_VERT
else
nFlags = SB_HORZ
endif
endif
::nPgStep = nSize
SetScrollInfo( If( ! Empty( ::hWnd ), ::hWnd, ::oWnd:hWnd ),;
nFlags, nSize, lReDraw )
return nil
METHOD SetPage( nSize, lReDraw ) CLASS TScrollBar
/*
local nFlags
DEFAULT lRedraw := .f.
// nSize = Max( 10, nSize )
if ! Empty( ::hWnd )
nFlags = SB_CTL
else
if ::lVertical
nFlags = SB_VERT
else
nFlags = SB_HORZ
endif
endif
::nPgStep = nSize
SetScrollInfo( If( ! Empty( ::hWnd ), ::hWnd, ::oWnd:hWnd ),;
nFlags, nSize, lReDraw )
*/
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
HB_FUNC( SETSCROLLRANGE )
{
SCROLLINFO si;
si.cbSize = sizeof( si );
si.fMask = SIF_PAGE | SIF_RANGE | SIF_DISABLENOSCROLL;
si.nPage = 1;
si.nMin = hb_parni( 3 );
si.nMax = hb_parni( 4 );
hb_retnl( SetScrollInfo( ( HWND ) hb_parnl( 1 ), hb_parni( 2 ), &si, hb_parl( 5 ) ) );
}
#pragma ENDDUMP
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot], Rick Lipkin and 60 guests