Click here to Skip to main content
12,063,909 members (62,067 online)

C / C++ / MFC

 
GeneralRe: Using namespace in VC6.0 ? Pin
Aescleal28-May-12 6:29
memberAescleal28-May-12 6:29 
GeneralRe: Using namespace in VC6.0 ? Pin
Vaclav_Sal28-May-12 8:22
memberVaclav_Sal28-May-12 8:22 
QuestionBest Approach to process KeyStrokes in Rich Edit Pin
ForNow25-May-12 11:47
memberForNow25-May-12 11:47 
AnswerRe: Best Approach to process KeyStrokes in Rich Edit Pin
«_Superman_»26-May-12 18:35
member«_Superman_»26-May-12 18:35 
GeneralRe: Best Approach to process KeyStrokes in Rich Edit Pin
JohnCz27-May-12 9:07
memberJohnCz27-May-12 9:07 
GeneralRe: Best Approach to process KeyStrokes in Rich Edit Pin
ForNow28-May-12 19:25
memberForNow28-May-12 19:25 
Questionquality metrics for edge detection Pin
Mamatha Eswaraiah24-May-12 8:26
memberMamatha Eswaraiah24-May-12 8:26 
QuestionIs SetCursorPos() Calling MouseMove ? Pin
yogeshs24-May-12 3:34
memberyogeshs24-May-12 3:34 
AnswerRe: Is SetCursorPos() Calling MouseMove ? Pin
TomasRiker224-May-12 11:53
memberTomasRiker224-May-12 11:53 
AnswerRe: Is SetCursorPos() Calling MouseMove ? Pin
«_Superman_»24-May-12 17:18
member«_Superman_»24-May-12 17:18 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
yogeshs24-May-12 20:56
memberyogeshs24-May-12 20:56 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
«_Superman_»24-May-12 21:12
member«_Superman_»24-May-12 21:12 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
yogeshs24-May-12 21:40
memberyogeshs24-May-12 21:40 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
yogeshs24-May-12 22:19
memberyogeshs24-May-12 22:19 
Hello

As U suggested that I need to set a flag before calling setCursorPos to check on MouseMove. Suppose If this flag satisfies the condition on MouseMove that movement is through SeCursorPos then it will return from there and then how will i reset tht flag on MouseMove.
Here is sample Code for this:
void CMarkWnd::OnMouseMove(UINT nFlags, CPoint point)
{
   if(GetCapture() != this)	return;
 
   //----Calling my own Code to Draw Stripe---//
   //  Doing Some calculation to Find the Width---
// and then setting Mouse Cursor Position---------

      
   SetCursorPos(x,y)
 

   CWnd::OnMouseMove(nFlags, point);
}

Thanks
Yogesh
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
«_Superman_»24-May-12 22:42
member«_Superman_»24-May-12 22:42 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
yogeshs25-May-12 0:52
memberyogeshs25-May-12 0:52 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
«_Superman_»25-May-12 1:00
member«_Superman_»25-May-12 1:00 
GeneralRe: Is SetCursorPos() Calling MouseMove ? [Working] Pin
yogeshs25-May-12 3:55
memberyogeshs25-May-12 3:55 
AnswerRe: Is SetCursorPos() Calling MouseMove ? Pin
Randor 25-May-12 2:25
member Randor 25-May-12 2:25 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
JohnCz27-May-12 9:31
memberJohnCz27-May-12 9:31 
Questionneed your help,to all programmers!!! Pin
ambreen115324-May-12 1:54
memberambreen115324-May-12 1:54 
AnswerRe: need your help,to all programmers!!! Pin
Chris Losinger24-May-12 2:24
memberChris Losinger24-May-12 2:24 
AnswerRe: need your help,to all programmers!!! Pin
enhzflep24-May-12 2:27
memberenhzflep24-May-12 2:27 
GeneralRe: need your help,to all programmers!!! Pin
ambreen115324-May-12 2:32
memberambreen115324-May-12 2:32 
GeneralRe: need your help,to all programmers!!! Pin
enhzflep24-May-12 2:38
memberenhzflep24-May-12 2:38 
AnswerRe: need your help,to all programmers!!! Pin
CPallini24-May-12 3:06
mvpCPallini24-May-12 3:06 
GeneralRe: need your help,to all programmers!!! Pin
Aescleal24-May-12 3:22
memberAescleal24-May-12 3:22 
GeneralRe: need your help,to all programmers!!! Pin
CPallini24-May-12 4:51
mvpCPallini24-May-12 4:51 
GeneralRe: need your help,to all programmers!!! Pin
Erudite_Eric24-May-12 5:36
memberErudite_Eric24-May-12 5:36 
GeneralRe: need your help,to all programmers!!! Pin
Aescleal24-May-12 7:45
memberAescleal24-May-12 7:45 
AnswerRe: need your help,to all programmers!!! Pin
Erudite_Eric24-May-12 5:37
memberErudite_Eric24-May-12 5:37 
AnswerRe: need your help,to all programmers!!! Pin
Albert Holguin24-May-12 6:15
memberAlbert Holguin24-May-12 6:15 
AnswerRe: need your help,to all programmers!!! Pin
jschell24-May-12 9:33
memberjschell24-May-12 9:33 
AnswerRe: need your help,to all programmers!!! Pin
Vaclav_Sal24-May-12 23:45
memberVaclav_Sal24-May-12 23:45 
AnswerUnicorns and Rainbows Pin
jkirkerx25-May-12 9:49
memberjkirkerx25-May-12 9:49 
Question[SOLVED]: Error Returning CArray Pin
Overloaded_Name23-May-12 22:30
memberOverloaded_Name23-May-12 22:30 
AnswerRe: Error Returning CArray Pin
CPallini23-May-12 22:52
mvpCPallini23-May-12 22:52 
GeneralRe: Error Returning CArray Pin
Overloaded_Name23-May-12 23:45
memberOverloaded_Name23-May-12 23:45 
QuestionRe: Error Returning CArray Pin
CPallini23-May-12 23:47
mvpCPallini23-May-12 23:47 
AnswerRe: Error Returning CArray Pin
Overloaded_Name23-May-12 23:56
memberOverloaded_Name23-May-12 23:56 
GeneralRe: Error Returning CArray Pin
CPallini24-May-12 0:02
mvpCPallini24-May-12 0:02 
QuestionReadFile bytes read not equla to bytes requested Pin
evs_bud23-May-12 22:27
memberevs_bud23-May-12 22:27 
AnswerRe: ReadFile bytes read not equla to bytes requested Pin
CPallini23-May-12 22:37
mvpCPallini23-May-12 22:37 
QuestionCreate an incoming connection RAS server with C++ Pin
Member 800297323-May-12 13:56
memberMember 800297323-May-12 13:56 
AnswerRe: Create an incoming connection RAS server with C++ Pin
Erudite_Eric23-May-12 23:09
memberErudite_Eric23-May-12 23:09 
GeneralRe: Create an incoming connection RAS server with C++ Pin
Member 800297324-May-12 6:55
memberMember 800297324-May-12 6:55 
QuestionCTabCtrl and CRuntimeClass - is there a better way? Pin
Vaclav_Sal23-May-12 7:08
memberVaclav_Sal23-May-12 7:08 
AnswerRe: CTabCtrl and CRuntimeClass - is there a better way? Pin
Aescleal23-May-12 7:47
memberAescleal23-May-12 7:47 
GeneralRe: CTabCtrl and CRuntimeClass - is there a better way? Pin
Vaclav_Sal23-May-12 8:42
memberVaclav_Sal23-May-12 8:42 
GeneralRe: CTabCtrl and CRuntimeClass - is there a better way? Pin
Vaclav_Sal23-May-12 11:29
memberVaclav_Sal23-May-12 11:29 

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.


Advertise | Privacy | Mobile
Web04 | 2.8.160204.4 | Last Updated 4 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid