00001 #ifndef __SCROLL_H__
00002 #define __SCROLL_H__
00003
00004
00005
00006
00007
00008
00009 #include <windows.h>
00010 #include <stdlib.h>
00011
00012
00013 typedef enum
00014 {
00015 SCROLL_VERTICAL,
00016 SCROLL_HORIZONTAL
00017 }
00018 SCROLL_TYPE;
00019
00020
00021 typedef struct tagSCROLL_t
00022 {
00023 HWND hOwner;
00024 int enabled;
00025 SCROLL_TYPE type;
00026 }
00027 SCROLL_t;
00028
00029
00030 typedef SCROLL_t VSCROLL;
00031 typedef SCROLL_t HSCROLL;
00032
00033
00034 #define SCROLL_DISABLED 0
00035 #define SCROLL_ENABLED 1
00036
00037
00038 void ScrollInit( SCROLL_t *scroll, HWND hOwner, SCROLL_TYPE type );
00039
00040 int ScrollGetTrackPosition( SCROLL_t *scroll );
00041 void ScrollGetAll( SCROLL_t *scroll, SCROLLINFO *info );
00042
00043 void ScrollSetPosition( SCROLL_t *scroll, int position );
00044
00045 void ScrollSetRange( SCROLL_t *scroll, int min, int max );
00046
00047 void ScrollSetPage( SCROLL_t *scroll, unsigned page );
00048
00049 int ScrollGetEnabled( SCROLL_t *scroll );
00050 void ScrollSetEnabled( SCROLL_t *scroll, int enabled );
00051
00052
00053 #endif
00054