Messages of scrollbar control
[ScrollBar control]

Defines


Define Documentation

#define SBM_ENABLE_ARROW   0xF0E7

Enable or disable the arrow of the scrollbar.

An application sends a SBM_ENABLE_ARROW message to enable or disable the arrow button of the scrollbar.

 SBM_ENABLE_ARROW
 int which = SB_ARROW_LTUP;
 BOOL is_active;
 
 wParam = (WPARAM)which;
 lParam = (LPARAM)is_active;
 SendMessage (hwnd_scrollbar, SBM_ENABLE_ARROW, wParam, lParam);
Parameters:
which the part of the scrollbar to enable or disable, can be one of the follow value:

  • SB_ARROW_LTUP
    the left or up arrow button.
  • SB_ARROW_BTDN
    the right or down arrow button.
  • SB_ARROW_BOTH
    all the arrow button.
is_active TRUE for enable ,FALSE for disable.

Definition at line 293 of file scrollbar.h.

#define SBM_GETPOS   0xF0E2

Get the thumb pos of the scrollbar.

An application sends a SBM_GETPOS message to get the start position of the scrollbar thumb.

 SBM_GETPOS
 int pos;
 
 pos = SendMessage (hwnd_scrollbar, SBM_GETPOS, 0, 0);
Returns:
the postion of the thumb.

Definition at line 173 of file scrollbar.h.

#define SBM_GETRANGE   0xF0E4

Get the range of the scrollbar.

An application sends a SBM_GETRANGE message to get the move range of the scrollbar.

 SBM_GETRANGE
 int range;
 
 range = SendMessage (hwnd_scrollbar, SBM_GETRANGE, 0, 0);
Returns:
the range of the scrollbar.

Definition at line 215 of file scrollbar.h.

#define SBM_GETSCROLLINFO   0xF0E0

Get the scroll information of the scrollbar.

Definition at line 149 of file scrollbar.h.

#define SBM_SETPOS   0xF0E3

Set the thumb pos of the scrollbar.

An application sends a SBM_SETPOS message to set the start position of the scrollbar thumb.

 SBM_SETPOS
 int pos = 10;
 BOOL redraw = TRUE;
 
 wParam = (WPARAM)pos;
 lParam = (LPARAM)redraw;
 SendMessage (hwnd_scrollbar, SBM_SETPOS, wParam, lParam);
Parameters:
pos The new positon of the thumb to set.
redraw Whether to repaint the control, TRUE for repaint, FALSE for not.
Returns:
the old postion of the thumb.

Definition at line 197 of file scrollbar.h.

#define SBM_SETRANGE   0xF0E5

Set the range of the scrollbar.

An application sends a SBM_SETRANGE message to set the move range of the scrollbar.

 SBM_SETRANGE
 int min = 0;
 int max = 100;
 
 wParam = (WPARAM)min;
 lParam = (LPARAM)max;
 SendMessage (hwnd_scrollbar, SBM_SETRANGE, wParam, lParam);
Parameters:
min The minimum value of the range to set.
max The maximum value of the range to set.
Note:
this message will not redraw the control.

Definition at line 239 of file scrollbar.h.

#define SBM_SETRANGEREDRAW   0xF0E6

Set the range of the scrollbar.

An application sends a SBM_SETRANGEREDRAW message to set the move range of the scrollbar and redraw the control.

 SBM_SETRANGEREDRAW
 int min = 0;
 int max = 100;
 
 wParam = (WPARAM)min;
 lParam = (LPARAM)max;
 SendMessage (hwnd_scrollbar, SBM_SETRANGEREDRAW, wParam, lParam);
Parameters:
min The minimum value of the range to set.
max The maximum value of the range to set.
Note:
this message will redraw the control.

Definition at line 263 of file scrollbar.h.

#define SBM_SETSCROLLINFO   0xF0E1

Set the scroll information of the scrollbar.

Definition at line 155 of file scrollbar.h.

Generated on Thu Apr 7 16:01:46 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3