Files
DotNet.Revit/DotNet.Revit.Hook/DataStructure/MOUSEHOOKSTRUCT.cs
2026-02-23 16:57:09 +08:00

34 lines
938 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace DotNet.Revit.Hook.DataStructure
{
/// <summary>
/// 全局鼠标消息结构体
/// </summary>
[StructLayout(LayoutKind.Sequential)]
struct MOUSEHOOKSTRUCT
{
/// <summary>
/// 屏幕坐标
/// </summary>
public POINT pt;
/// <summary>
/// 如果消息是WM_MOUSEWHEEL则此成员的高位字是wheel delta。保留低位字。正值表示车轮向前旋转远离用户; 负值表示车轮向后旋转,朝向用户。
/// XBUTTON1 == 0x0001 如果按下或释放第一个X按钮。
/// XBUTTON2 == 0x0002 如果按下或释放第一个X按钮。
/// </summary>
public int mouseData;
public int flags;
public uint wHitTestCode;
public uint dwExtraInfo;
}
}