网站首页  词典首页

请输入您要查询的函数:

 

术语 getnumberofconsolemousebuttons
释义 GetNumberOfConsoleMouseButtons
语法:
C++
BOOL WINAPI GetNumberOfConsoleMouseButtons(
__out LPDWORD lpNumberOfMouseButtons
);
GetNumberOfConsoleMouseButtons功能
检索人数由目前的游戏机使用的鼠标按钮。
参数
lpNumberOfMouseButtons [out]
一个变量,它接收的鼠标按钮数指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
当一个控制台接收鼠标输入,INPUT_RECORD结构包含MOUSE_EVENT_RECORD结构是在控制台的输入缓冲区内。在MOUSE_EVENT_RECORD dwButtonState成员有位显示每个鼠标按钮的状态。该位是1如果按钮下来,0如果按钮了。要确定位数是重要的,使用GetNumberOfConsoleMouseButtons。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWincon.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
控制台函数
控制台输入缓冲区
ReadConsoleInput
INPUT_RECORD
MOUSE_EVENT_RECORD
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetNumberOfConsoleMouseButtons Function
Retrieves the number of buttons on the mouse used by the current console.
Syntax
C++
BOOL WINAPI GetNumberOfConsoleMouseButtons(
__out LPDWORD lpNumberOfMouseButtons
);
Parameters
lpNumberOfMouseButtons [out]
A pointer to a variable that receives the number of mouse buttons.
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
When a console receives mouse input, an INPUT_RECORD structure containing a MOUSE_EVENT_RECORD structure is placed in the console's input buffer. The dwButtonState member of MOUSE_EVENT_RECORD has a bit indicating the state of each mouse button. The bit is 1 if the button is down and 0 if the button is up. To determine the number of bits that are significant, use GetNumberOfConsoleMouseButtons.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWincon.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Console Functions
Console Input Buffer
ReadConsoleInput
INPUT_RECORD
MOUSE_EVENT_RECORD
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683208(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:23:10