Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Best Approach to process KeyStrokes in Rich Edit Pin
JohnCz27-May-12 8:07
JohnCz27-May-12 8:07 
GeneralRe: Best Approach to process KeyStrokes in Rich Edit Pin
ForNow28-May-12 18:25
ForNow28-May-12 18:25 
Questionquality metrics for edge detection Pin
Mamatha Eswaraiah24-May-12 7:26
Mamatha Eswaraiah24-May-12 7:26 
QuestionIs SetCursorPos() Calling MouseMove ? Pin
002comp24-May-12 2:34
002comp24-May-12 2:34 
AnswerRe: Is SetCursorPos() Calling MouseMove ? Pin
TomasRiker224-May-12 10:53
TomasRiker224-May-12 10:53 
AnswerRe: Is SetCursorPos() Calling MouseMove ? Pin
«_Superman_»24-May-12 16:18
professional«_Superman_»24-May-12 16:18 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
002comp24-May-12 19:56
002comp24-May-12 19:56 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
«_Superman_»24-May-12 20:12
professional«_Superman_»24-May-12 20:12 
The question is not clear to me, but let me answer with what I think the question is.

An OnMouseMove handler is called when the mouse is moved over a window.
When SetCursorPos is called, it does not normally call OnMouseMove.
But if the new cursor position as a result of calling SetCursorPos is over the window for which the OnMouseMove handler is created, then it will be invoked.

If that is the case, you will need to set a flag before calling SetCursorPos and then check this flag inside OnMouseMove to distinguish between manually moving the mouse and calling SetCursorPos.
Remember to reset this flag inside OnMouseMove.
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++)

Polymorphism in C

GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
002comp24-May-12 20:40
002comp24-May-12 20:40 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
002comp24-May-12 21:19
002comp24-May-12 21:19 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
«_Superman_»24-May-12 21:42
professional«_Superman_»24-May-12 21:42 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
002comp24-May-12 23:52
002comp24-May-12 23:52 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
«_Superman_»25-May-12 0:00
professional«_Superman_»25-May-12 0:00 
GeneralRe: Is SetCursorPos() Calling MouseMove ? [Working] Pin
002comp25-May-12 2:55
002comp25-May-12 2:55 
AnswerRe: Is SetCursorPos() Calling MouseMove ? Pin
Randor 25-May-12 1:25
professional Randor 25-May-12 1:25 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
JohnCz27-May-12 8:31
JohnCz27-May-12 8:31 
Questionneed your help,to all programmers!!! Pin
ambreen115324-May-12 0:54
ambreen115324-May-12 0:54 
AnswerRe: need your help,to all programmers!!! Pin
Chris Losinger24-May-12 1:24
professionalChris Losinger24-May-12 1:24 
AnswerRe: need your help,to all programmers!!! Pin
enhzflep24-May-12 1:27
enhzflep24-May-12 1:27 
GeneralRe: need your help,to all programmers!!! Pin
ambreen115324-May-12 1:32
ambreen115324-May-12 1:32 
GeneralRe: need your help,to all programmers!!! Pin
enhzflep24-May-12 1:38
enhzflep24-May-12 1:38 
AnswerRe: need your help,to all programmers!!! Pin
CPallini24-May-12 2:06
mveCPallini24-May-12 2:06 
GeneralRe: need your help,to all programmers!!! Pin
Aescleal24-May-12 2:22
Aescleal24-May-12 2:22 
GeneralRe: need your help,to all programmers!!! Pin
CPallini24-May-12 3:51
mveCPallini24-May-12 3:51 
GeneralRe: need your help,to all programmers!!! Pin
Erudite_Eric24-May-12 4:36
Erudite_Eric24-May-12 4:36 

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.