网站首页  词典首页

请输入您要查询的函数:

 

术语 enablescrollbar
释义 EnableScrollBar
语法:
BOOL EnableScrollBar( HWND hWnd,
UINT wSBflags,
UINT wArrows
);
EnableScrollBar功能
该EnableScrollBar功能启用或禁用一个或两个滚动条箭头。
参数
hWnd
[in]句柄窗口或滚动条控制,取决于该wSBflags参数的值。
wSBflags
[in]指定滚动条的类型。此参数可以是下列值之一。
SB_BOTH
启用或禁用与指定的窗口相关联的Level和垂直滚动条的箭头。在hWnd参数必须是窗口句柄。
SB_CTL
表示该滚动条滚动条控制。由hWnd必须处理的滚动条控制。
SB_HORZ
启用或禁用横幅上与指定的窗口相关栏中的箭头。在hWnd参数必须是窗口句柄。
SB_VERT
启用或禁用的垂直滚动与指定的窗口相关栏中的箭头。在hWnd参数必须是窗口句柄。
wArrows
[in]滚动条是否箭头启用或禁用,并指出哪些箭头启用或禁用指定。此参数可以是下列值之一。
ESB_DISABLE_BOTH
禁用两个箭头上的滚动条。
ESB_DISABLE_DOWN
禁用的垂直滚动条向下箭头。
ESB_DISABLE_LEFT
禁用离开Level滚动条的箭头。
ESB_DISABLE_LTUP
禁用离开Level滚动条或向上的垂直滚动条药物治疗的进展。
ESB_DISABLE_RIGHT
禁用的Level滚动条向右箭头。
ESB_DISABLE_RTDN
禁用的Level滚动条或垂直滚动条向下箭头向右箭头。
ESB_DISABLE_UP
禁用向上箭头的垂直滚动条。
ESB_ENABLE_BOTH
启用滚动条上的两个箭头。
返回值
如果箭头指明启用或禁用,返回非零值。
如果已经在被请求国箭头或发生错误,返回值是零。为了获得更多错误信息,调用GetLastError。
功能信息
最低DLL版本 comctl32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
==英文原文==EnableScrollBar Function
The EnableScrollBar function enables or disables one or both scroll bar arrows.
Syntax
BOOL EnableScrollBar( HWND hWnd,
UINT wSBflags,
UINT wArrows
);
Parameters
hWnd
[in] Handle to a window or a scroll bar control, depending on the value of the wSBflags parameter.
wSBflags
[in] Specifies the scroll bar type. This parameter can be one of the following values.
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
Indicates that the scroll bar is a scroll bar control. The hWnd 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.
wArrows
[in] Specifies whether the scroll bar arrows are enabled or disabled and indicates which arrows are enabled or disabled. This parameter can be one of the following values.
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.
Return Value
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 .
Function Information
Minimum DLL Versioncomctl32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
==原始网址==http://msdn.microsoft.com/en-us/library/bb787579(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:30:47