Click here to Skip to main content
16,004,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Process terminates spontaneously - No exception dialogue Pin
shoppinit27-Jul-10 8:14
shoppinit27-Jul-10 8:14 
GeneralRe: Process terminates spontaneously - No exception dialogue Pin
shoppinit6-Aug-10 17:41
shoppinit6-Aug-10 17:41 
AnswerRe: Process terminates spontaneously - No exception dialogue Pin
KarstenK19-Jul-10 21:47
mveKarstenK19-Jul-10 21:47 
Questionerror PRJ0019 Pin
mcdoloand19-Jul-10 8:49
mcdoloand19-Jul-10 8:49 
AnswerRe: error PRJ0019 Pin
Chris Losinger19-Jul-10 9:16
professionalChris Losinger19-Jul-10 9:16 
GeneralRe: error PRJ0019 Pin
mcdoloand20-Jul-10 7:37
mcdoloand20-Jul-10 7:37 
AnswerRe: error PRJ0019 Pin
David Crow20-Jul-10 9:40
David Crow20-Jul-10 9:40 
Questioncompletely restrict mouse movement (including raw data) Pin
3Dizard19-Jul-10 2:23
3Dizard19-Jul-10 2:23 
Hi,
I want to confine mouse movement. Let's say I want to confine mouse movement to x-direction (so only horizontal movement is possible) when pressing a certain button. This should work globally. What I mean with that is, that I want to use this in any windows program. Let's take MS Paint as an example: When my program runs and I press the certain button, the movement of the mouse should be restricted to horizontal movement. So when drawing a straight horizontal line should be the result.

My research so far led me to ClipCursor, but ClipCursor seems to only affect the mousecursor, not the raw data. So returning to the example of MS Paint the following happens:
The cursor moves on the horizontal line, but the mouse data received by paint is different: So if you move the mouse slightly in y-direction this still affects the line drawn, also the mouse cursor itself does not indicate that (stays on the straight line). So the result is not a straight line as expected.

Does anybody know how to solve that problem ? (as ClipCursor does not confine the raw data sent to an application, it seems to be the wrong routine for doing that)

Thanks in advance.
AnswerRe: completely restrict mouse movement (including raw data) Pin
elchupathingy19-Jul-10 3:37
elchupathingy19-Jul-10 3:37 
QuestionRe: completely restrict mouse movement (including raw data) Pin
3Dizard20-Jul-10 5:45
3Dizard20-Jul-10 5:45 
AnswerRe: completely restrict mouse movement (including raw data) Pin
elchupathingy20-Jul-10 9:44
elchupathingy20-Jul-10 9:44 
AnswerRe: completely restrict mouse movement (including raw data) Pin
Code-o-mat19-Jul-10 4:02
Code-o-mat19-Jul-10 4:02 
GeneralRe: completely restrict mouse movement (including raw data) Pin
elchupathingy19-Jul-10 4:35
elchupathingy19-Jul-10 4:35 
GeneralRe: completely restrict mouse movement (including raw data) Pin
Code-o-mat19-Jul-10 4:42
Code-o-mat19-Jul-10 4:42 
GeneralRe: completely restrict mouse movement (including raw data) Pin
elchupathingy19-Jul-10 4:55
elchupathingy19-Jul-10 4:55 
Questiontry-catch exception Pin
Pryabu18-Jul-10 22:59
Pryabu18-Jul-10 22:59 
AnswerRe: try-catch exception Pin
ShilpiP18-Jul-10 23:07
ShilpiP18-Jul-10 23:07 
GeneralRe: try-catch exception Pin
Pryabu18-Jul-10 23:21
Pryabu18-Jul-10 23:21 
GeneralRe: try-catch exception Pin
ShilpiP18-Jul-10 23:49
ShilpiP18-Jul-10 23:49 
AnswerRe: try-catch exception Pin
Niklas L18-Jul-10 23:21
Niklas L18-Jul-10 23:21 
GeneralRe: try-catch exception Pin
Aescleal19-Jul-10 0:01
Aescleal19-Jul-10 0:01 
QuestionImage GDI+ Pin
john563218-Jul-10 22:52
john563218-Jul-10 22:52 
AnswerRe: Image GDI+ Pin
E.F. Nijboer19-Jul-10 4:51
E.F. Nijboer19-Jul-10 4:51 
QuestionReading Windows Registry data in 64 bit operating system Pin
msr_codeproject18-Jul-10 21:26
msr_codeproject18-Jul-10 21:26 
AnswerRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan18-Jul-10 22:28
mveRichard MacCutchan18-Jul-10 22:28 

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.