智动软件 - 站长优化推广网站好帮手
帐号: 密码: 注册会员
模糊 标题

钩子(HOOK)函数教程(三十)

时间:2010-04-21 Tag: HOOK 钩子 教程 点击:统计中..

结构8 MOUSEHOOKSTRUCT Structure copyright 智动软件

The MOUSEHOOKSTRUCT structure contains information about a mouse event passed to a WH_MOUSE hook procedure, MouseProc.

zdwork.cn

MOUSEHOOKSTRUCT结构包含有传递给WH_MOUSE钩子子程MouseProc的,关于鼠标事件的信息。 本文来自智动软件zdwork.cn

Syntax语法

本文来自智动软件zdwork.cn

typedef struct { 内容来自zdwork.cn

    POINT pt;

www.zdwork.cn

    HWND hwnd;

www.zdwork.cn

    UINT wHitTestCode; 本文来自智动软件zdwork.cn

    ULONG_PTR dwExtraInfo; 本文来自智动软件zdwork.cn

} MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT;

www.zdwork.cn

Members成员

copyright 智动软件

pt Specifies a POINT structure that contains the x- and y-coordinates of the cursor, in screen coordinates. 指定在屏幕坐标系下,包含有光标xy坐标的POINT结构。 copyright 智动软件

hwnd : Handle to the window that will receive the mouse message corresponding to the mouse event. 希望对鼠标事件做出响应、接收鼠标消息的窗体的句柄。

本文来自智动软件zdwork.cn

wHitTestCode Specifies the hit-test value. For a list of hit-test values, see the description of the WM_NCHITTEST message. 指定点击测试值。查看WM_NCHITTEST消息可以得到值的列表。 zdwork.cn

dwExtraInfo Specifies extra information associated with the message. 指定和该消息相关联的附加信息。

内容来自zdwork.cn

  智动软件

结构9MOUSEHOOKSTRUCTEX Structure 内容来自zdwork.cn

The MOUSEHOOKSTRUCTEX structure contains information about a mouse event passed to a WH_MOUSE hook procedure, MouseProc. 内容来自zdwork.cn

MOUSEHOOKSTRUCTEX结构包含有传递给WH_MOUSE钩子子程MouseProc的关于鼠标事件的信息。

智动软件

This is an extension of the MOUSEHOOKSTRUCT structure that includes information about wheel movement or the use of the X button. copyright 智动软件

这是对MOUSEHOOKSTRUCT的扩展。包含有滚轮的活动和X键的使用。

内容来自zdwork.cn

Syntax语法

本文来自智动软件zdwork.cn

typedef struct { copyright 智动软件

    MOUSEHOOKSTRUCT MOUSEHOOKSTRUCT; 智动软件

    DWORD mouseData; 智动软件

} MOUSEHOOKSTRUCTEX, *PMOUSEHOOKSTRUCTEX; 内容来自zdwork.cn

Members成员 copyright 智动软件

MOUSEHOOKSTRUCT 内容来自zdwork.cn

The members of a MOUSEHOOKSTRUCT structure make up the first part of this structure.

zdwork.cn

MOUSEHOOKSTRUCT结构的成员构成了该结构的前面部分。

zdwork.cn

mouseData

本文来自智动软件zdwork.cn

If the message is WM_MOUSEWHEEL, the HIWORD of this member is the wheel delta. The LOWORD is undefined and reserved. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user. One wheel click is defined as WHEEL_DELTA, which is 120.

内容来自zdwork.cn

如果消息是WM_MOUSEWHEEL,该成员的HIWORD就是wheel deltaLOWORD做为保留未定义。正值表示滚轮向前旋转,即远离用户的方向;负值表示滚轮向后旋转,即朝向用户的方向。滚轮的点击被定义为WHEEL_DELTA, 具体值为120 www.zdwork.cn

If the message is WM_XBUTTONDOWN, WM_XBUTTONUP, WM_XBUTTONDBLCLK, WM_NCXBUTTONDOWN, WM_NCXBUTTONUP, or WM_NCXBUTTONDBLCLK, the HIWORD of mouseData specifies which X button was pressed or released, and the LOWORD is undefined and reserved. This member can be one or more of the following values. Otherwise, mouseData is not used. 本文来自智动软件zdwork.cn

如果消息是WM_XBUTTONDOWN, WM_XBUTTONUP, WM_XBUTTONDBLCLK, WM_NCXBUTTONDOWN, WM_NCXBUTTONUP, 或者 WM_NCXBUTTONDBLCLK,  mouseData  HIWORD值指定哪个X键被按下或者释放,LOWORD做为保留未定义。该成员可以是以下值中的一个或者多个。否则,mouseData未使用。 本文来自智动软件zdwork.cn

1XBUTTON1 The first X button was pressed or released. 第一个X键被按下或者释放。 内容来自zdwork.cn

2XBUTTON2 The second X button was pressed or released.第二个X键被按下或者释放。

copyright 智动软件

Helios  2007-5-31 智动软件

 

www.zdwork.cn

(责任编辑:admin)
顶一下
(0)
0%
踩一下
(0)
0%

推荐内容

热门内容

相关内容


关于我们 | 联系我们 | 代理合作 | 意见及建议

本站免费提供刷IP软件,另有邮件搜索软件等,需要定制软件或有建议可联系我们。联系方式:QQ:896186342 Email:zdwork@qq.com 滇ICP备08001410号.