Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used Get_X_LParam for mouse movement and WParam for wheel movement.
Like DWORD x = HIWORD(wParam) but both of these events return continuous values.

for eg. if(x>0)
{
//do this
}

else
{
//do this
}

the Wparam only returns the same value every time even if I am moving my wheel downwards. Same with Get_X_LParam

What I have tried:

I have tried what I have described in the problem
Posted
Updated 22-Sep-18 1:22am
Comments
Patrice T 22-Sep-18 8:05am    
Try to show the real code you use.

1 solution

 
Share this answer
 
Comments
Siddhant Bhati 22-Sep-18 7:51am    
when I put xPos in the condition

for eg. if(xPos>0)
//Do this

else
//do This.

It only returns the same value no matter where I move the mouse
Richard MacCutchan 22-Sep-18 7:56am    
I have no idea I am sorry. I use this message a lot in my code and it always works. You need to show more of your code, and also the actual values that you receive.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900