4379 views|2 replies

72

Posts

0

Resources
The OP

How can I implement the WM_MOUSEHWHEEL message in the tilt wheel mouse in Win200/XP DDK? [Copy link]

In Vista, there is a mouse message WM_MOUSEHWHEEL, but in 2000/XP there is no such message. I want to write a mousefilter to support this function in 2000/XP. How can I do it? In MouseServiceCallback()? I don't know how to implement it in the MOUSE_INPUT_DATA structure.
This post is from Embedded System

Latest reply

What other variables are included in the InputDataStart structure besides ButtonData and ButtonFlags? I think the wheel function is not implemented in the button.  Details Published on 2008-11-12 10:37

65

Posts

0

Resources
2
I worked on it all night yesterday, but still couldn't get it right. According to the description in MSDN, void MouseFilterDevice::MouseServiceCallback( PMOUSE_INPUT_DATA InputDataStart, PMOUSE_INPUT_DATA InputDataEnd, PULONG InputDataConsumed) { t << "ButtonData: " << InputDataStart->ButtonData << EOL; ////Output data display t << "ButtonFlags: " << InputDataStart->ButtonFlags << EOL; ////Output flag display} The data obtained is all 0x0000, which should be 0x020E according to MSDN. The corresponding 0x020A under ButtonFlags is MOUSE_WHEEL, but the actual result is 0x0400. The corresponding 0x020E under ButtonFlags is MOUSE_HWHEEL, but the actual result is 0x0000. Why is ButtonFlags What if Flags and ButtonDara corresponding to MOUSE_HWHEEL are all 0x0000? No one replied, check it yourself!
This post is from Embedded System

80

Posts

0

Resources
3
What other variables are included in the InputDataStart structure besides ButtonData and ButtonFlags? I think the wheel function is not implemented in the button.
This post is from Embedded System

Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list