Click here to Skip to main content
15,881,701 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: d3d color translate Pin
boxfile21-Jul-13 22:44
boxfile21-Jul-13 22:44 
SuggestionRe: d3d color translate Pin
Richard MacCutchan22-Jul-13 2:00
mveRichard MacCutchan22-Jul-13 2:00 
QuestionMicrosoft Expression Encoder with IIS Live Smooth Streaming Issue Pin
Member 1003572121-Jul-13 21:45
Member 1003572121-Jul-13 21:45 
QuestionRe: Microsoft Expression Encoder with IIS Live Smooth Streaming Issue Pin
Richard MacCutchan21-Jul-13 23:46
mveRichard MacCutchan21-Jul-13 23:46 
QuestionConnect to local datadase Pin
Member 905807321-Jul-13 20:46
Member 905807321-Jul-13 20:46 
AnswerRe: Connect to local datadase Pin
Richard MacCutchan21-Jul-13 23:45
mveRichard MacCutchan21-Jul-13 23:45 
Question[C++] How to change the mouse position in Mouse Hook Pin
Rex Miao21-Jul-13 17:25
Rex Miao21-Jul-13 17:25 
AnswerRe: [C++] How to change the mouse position in Mouse Hook Pin
pasztorpisti21-Jul-13 21:35
pasztorpisti21-Jul-13 21:35 
I think you are approaching the problem from a wrong direction. The mouse works the following way: The hardware sends movement deltas to the machine and to the OS via the driver and there it gets accumulated into a mouse position value. If you want to invert the movement you have to invert the deltas because you simply can't do that with the position. Maybe if you knew the previous value of the position... But even in that case that would be quite a messy solution. Another problem with this solution is that as far as I know most hook types are not allowed to modify the incoming parameters and they have to pass on them to the next hook handler unmodified.

You should probably write a mouse filter driver:
http://code.msdn.microsoft.com/windowshardware/Moufiltr-WDF-Version-fb57f5de[^]
http://www.maf-soft.de/mafmouse/[^]
GeneralRe: [C++] How to change the mouse position in Mouse Hook Pin
Rex Miao22-Jul-13 16:47
Rex Miao22-Jul-13 16:47 
GeneralRe: [C++] How to change the mouse position in Mouse Hook Pin
pasztorpisti22-Jul-13 22:42
pasztorpisti22-Jul-13 22:42 
GeneralRe: [C++] How to change the mouse position in Mouse Hook Pin
Rex Miao14-Aug-13 16:10
Rex Miao14-Aug-13 16:10 
GeneralRe: [C++] How to change the mouse position in Mouse Hook Pin
pasztorpisti14-Aug-13 19:12
pasztorpisti14-Aug-13 19:12 
GeneralRe: [C++] How to change the mouse position in Mouse Hook Pin
Rex Miao14-Aug-13 19:24
Rex Miao14-Aug-13 19:24 
AnswerRe: [C++] How to change the mouse position in Mouse Hook Pin
Stephen Hewitt23-Jul-13 8:35
Stephen Hewitt23-Jul-13 8:35 
GeneralRe: [C++] How to change the mouse position in Mouse Hook Pin
Rex Miao24-Jul-13 17:49
Rex Miao24-Jul-13 17:49 
QuestionPer CPU Cycle Times Pin
Richard Andrew x6421-Jul-13 9:07
professionalRichard Andrew x6421-Jul-13 9:07 
AnswerRe: Per CPU Cycle Times Pin
leon de boer13-Aug-13 8:09
leon de boer13-Aug-13 8:09 
QuestionPhysical drive size Pin
john563219-Jul-13 23:32
john563219-Jul-13 23:32 
SuggestionRe: Physical drive size Pin
Richard MacCutchan20-Jul-13 0:09
mveRichard MacCutchan20-Jul-13 0:09 
GeneralRe: Physical drive size Pin
john563220-Jul-13 0:14
john563220-Jul-13 0:14 
SuggestionRe: Physical drive size Pin
Richard MacCutchan20-Jul-13 0:15
mveRichard MacCutchan20-Jul-13 0:15 
GeneralRe: Physical drive size Pin
john563220-Jul-13 0:24
john563220-Jul-13 0:24 
GeneralRe: Physical drive size Pin
john563220-Jul-13 1:36
john563220-Jul-13 1:36 
GeneralRe: Physical drive size Pin
Jochen Arndt20-Jul-13 2:02
professionalJochen Arndt20-Jul-13 2:02 
GeneralRe: Physical drive size Pin
john563220-Jul-13 3:53
john563220-Jul-13 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.