The EnableScrollBar function enables or disables one or both scroll bar arrows.
BOOL EnableScrollBar(
|
HWND hWnd, |
// handle to window or scroll bar |
|
UINT wSBflags, |
// scroll bar type flag |
|
UINT wArrows |
// scroll bar arrow flag |
|
); |
|
Value |
Meaning |
|
SB_BOTH |
Enables or disables the arrows on the horizontal and vertical scroll bars associated with the specified window. The hWnd parameter must be the handle to the window. |
|
SB_CTL |
Identifies the scroll bar as a scroll bar control. The hWnd parameter must be the handle to the scroll bar control. |
|
SB_HORZ |
Enables or disables the arrows on the horizontal scroll bar associated with the specified window. The hWnd parameter must be the handle to the window. |
|
SB_VERT |
Enables or disables the arrows on the vertical scroll bar associated with the specified window. The hWnd parameter must be the handle to the window. |
|
Value |
Meaning |
|
ESB_DISABLE_BOTH |
Disables both arrows on a scroll bar. |
|
ESB_DISABLE_DOWN |
Disables the down arrow on a vertical scroll bar. |
|
ESB_DISABLE_LEFT |
Disables the left arrow on a horizontal scroll bar. |
|
ESB_DISABLE_LTUP |
Disables the left arrow on a horizontal scroll bar or the up arrow of a vertical scroll bar. |
|
ESB_DISABLE_RIGHT |
Disables the right arrow on a horizontal scroll bar. |
|
ESB_DISABLE_RTDN |
Disables the right arrow on a horizontal scroll bar or the down arrow of a vertical scroll bar. |
|
ESB_DISABLE_UP |
Disables the up arrow on a vertical scroll bar. |
|
ESB_ENABLE_BOTH |
Enables both arrows on a scroll bar. |
If the arrows are enabled or disabled as specified, the return value is nonzero.
If the arrows are already in the requested state or an error occurs, the return value is zero. To get extended error information, call GetLastError.
See also:
| file: /Techref/os/win/api/win32/func/src/f18_19.htm, 5KB, , updated: 2000/4/7 12:19, local time: 2012/5/24 09:46,
38.107.179.232:LOG IN |
| ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/tecHREF/os/win/api/win32/func/src/f18_19.htm"> EnableScrollBar</A> |
| Did you find what you needed? |
|
The PICList shop now offers mugs, steins and... T-Shirts!!! |
Robotics nuts!Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.