Click here to Skip to main content
15,887,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiond3d color translate Pin
boxfile21-Jul-13 22:18
boxfile21-Jul-13 22:18 
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 
Dear All,
This is my first time to ask question on this platform.
The question is: I want to write a program, which can modify the mouse position to achieve inverting mouse movement, like wanna move up but it goes down. wanna move left but it goes right.

here is the callback sample code, but I can get what I want.
What can I do?
LRESULT CALLBACK MouseHookProc2(int nCode, WPARAM wParam, LPARAM lParam)
{

	if(wParam == WM_MOUSEMOVE ||wParam == WM_NCMOUSEMOVE)
	{

		MOUSEHOOKSTRUCT* data=(MOUSEHOOKSTRUCT*) lParam;
		LPARAM lParam2= MAKELPARAM(0,data->pt.y);
		return CallNextHookEx(NULL,nCode,wParam,lParam2);

	}
return CallNextHookEx(NULL,nCode,wParam,lParam);
}

AnswerRe: [C++] How to change the mouse position in Mouse Hook Pin
pasztorpisti21-Jul-13 21:35
pasztorpisti21-Jul-13 21:35 
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 

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.