网站首页  词典首页

请输入您要查询的函数:

 

术语 getscrollbarinfo
释义 GetScrollBarInfo
语法:
BOOL GetScrollBarInfo( HWND hwnd,
LONG idObject,
PSCROLLBARINFO psbi
);
GetScrollBarInfo功能
该GetScrollBarInfo函数检索有关指定的滚动条。
参数
hwnd
[in]处理与滚动条的信息可以检索相关的一个窗口。如果idObject参数OBJID_CLIENT,hwnd是一个句柄滚动条控制。否则,hwnd是一处理与WS_VSCROLL和/或WS_HSCROLL风格创建了一个窗口。
idObject
[in]指定滚动条对象。此参数可以是下列值之一。
OBJID_CLIENT
在hwnd参数是一个句柄滚动条控制。
OBJID_HSCROLL
在窗口的HWNDLevel滚动条。
OBJID_VSCROLL
在窗口的HWND垂直滚动条。
psbi
[out]指向1 SCROLLBARINFO结构,收到信息。在调用GetScrollBarInfo,设置cbSize成员为sizeof(SCROLLBARINFO)。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
如果idObject是OBJID_CLIENT和hwnd指定的窗口不是一个滚动条控制系统,该系统发送SBM_GETSCROLLBARINFO信息获取的窗口滚动条信息。这使得GetScrollBarInfo运作自定义控件模仿一个滚动条。如果窗口不处理SBM_GETSCROLLBARINFO消息,GetScrollBarInfo函数失败。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最小98经营systemsWindows时,Windows NT 4.0 Service Pack 6中
参见
SCROLLBARINFO
==英文原文==GetScrollBarInfo Function
The GetScrollBarInfo function retrieves information about the specified scroll bar.
Syntax
BOOL GetScrollBarInfo( HWND hwnd,
LONG idObject,
PSCROLLBARINFO psbi
);
Parameters
hwnd
[in] Handle to a window associated with the scroll bar whose information is to be retrieved. If the idObject parameter is OBJID_CLIENT, hwnd is a handle to a scroll bar control. Otherwise, hwnd is a handle to a window created with WS_VSCROLL and/or WS_HSCROLL style.
idObject
[in] Specifies the scroll bar object. This parameter can be one of the following values.
OBJID_CLIENT
The hwnd parameter is a handle to a scroll bar control.
OBJID_HSCROLL
The horizontal scroll bar of the hwnd window.
OBJID_VSCROLL
The vertical scroll bar of the hwnd window.
psbi
[out] Pointer to a SCROLLBARINFO structure to receive the information. Before calling GetScrollBarInfo, set the cbSize member to sizeof(SCROLLBARINFO).
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
If idObject is OBJID_CLIENT and the window specified by hwnd is not a system scroll bar control, the system sends the SBM_GETSCROLLBARINFO message to the window to obtain scroll bar information. This allows GetScrollBarInfo to operate on a custom control that mimics a scroll bar. If the window does not handle the SBM_GETSCROLLBARINFO message, the GetScrollBarInfo function fails.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 98, Windows NT 4.0 with Service Pack 6
See Also
SCROLLBARINFO
==原始网址==http://msdn.microsoft.com/en-us/library/bb787581(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 13:22:23