Click here to Skip to main content
       

C / C++ / MFC

 
GeneralRe: Using namespace in VC6.0 ? PinmemberAescleal28-May-12 5:29 
GeneralRe: Using namespace in VC6.0 ? PinmemberVaclav_Sal28-May-12 7:22 
QuestionBest Approach to process KeyStrokes in Rich Edit PinmemberForNow25-May-12 10:47 
AnswerRe: Best Approach to process KeyStrokes in Rich Edit Pinmember«_Superman_»26-May-12 17:35 
GeneralRe: Best Approach to process KeyStrokes in Rich Edit PinmemberJohnCz27-May-12 8:07 
GeneralRe: Best Approach to process KeyStrokes in Rich Edit PinmemberForNow28-May-12 18:25 
Questionquality metrics for edge detection PinmemberMamatha Eswaraiah24-May-12 7:26 
QuestionIs SetCursorPos() Calling MouseMove ? [modified] Pinmemberyogeshs24-May-12 2:34 
AnswerRe: Is SetCursorPos() Calling MouseMove ? PinmemberTomasRiker224-May-12 10:53 
AnswerRe: Is SetCursorPos() Calling MouseMove ? Pinmember«_Superman_»24-May-12 16:18 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pinmemberyogeshs24-May-12 19:56 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pinmember«_Superman_»24-May-12 20:12 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pinmemberyogeshs24-May-12 20:40 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pinmemberyogeshs24-May-12 21: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 ? Pinmember«_Superman_»24-May-12 21:42 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pinmemberyogeshs24-May-12 23:52 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pinmember«_Superman_»25-May-12 0:00 
GeneralRe: Is SetCursorPos() Calling MouseMove ? [Working] Pinmemberyogeshs25-May-12 2:55 
AnswerRe: Is SetCursorPos() Calling MouseMove ? Pinmember Randor 25-May-12 1:25 
GeneralRe: Is SetCursorPos() Calling MouseMove ? PinmemberJohnCz27-May-12 8:31 
Questionneed your help,to all programmers!!! Pinmemberambreen115324-May-12 0:54 
AnswerRe: need your help,to all programmers!!! PinmemberChris Losinger24-May-12 1:24 
AnswerRe: need your help,to all programmers!!! Pinmemberenhzflep24-May-12 1:27 
GeneralRe: need your help,to all programmers!!! Pinmemberambreen115324-May-12 1:32 
GeneralRe: need your help,to all programmers!!! Pinmemberenhzflep24-May-12 1:38 
AnswerRe: need your help,to all programmers!!! PinmvpCPallini24-May-12 2:06 
GeneralRe: need your help,to all programmers!!! PinmemberAescleal24-May-12 2:22 
GeneralRe: need your help,to all programmers!!! PinmvpCPallini24-May-12 3:51 
GeneralRe: need your help,to all programmers!!! PinmemberErudite_Eric24-May-12 4:36 
GeneralRe: need your help,to all programmers!!! PinmemberAescleal24-May-12 6:45 
AnswerRe: need your help,to all programmers!!! PinmemberErudite_Eric24-May-12 4:37 
AnswerRe: need your help,to all programmers!!! PinmemberAlbert Holguin24-May-12 5:15 
AnswerRe: need your help,to all programmers!!! Pinmemberjschell24-May-12 8:33 
AnswerRe: need your help,to all programmers!!! PinmemberVaclav_Sal24-May-12 22:45 
AnswerUnicorns and Rainbows Pinmemberjkirkerx25-May-12 8:49 
Question[SOLVED]: Error Returning CArray [modified] PinmemberOverloaded_Name23-May-12 21:30 
AnswerRe: Error Returning CArray PinmvpCPallini23-May-12 21:52 
GeneralRe: Error Returning CArray PinmemberOverloaded_Name23-May-12 22:45 
QuestionRe: Error Returning CArray PinmvpCPallini23-May-12 22:47 
AnswerRe: Error Returning CArray PinmemberOverloaded_Name23-May-12 22:56 
GeneralRe: Error Returning CArray PinmvpCPallini23-May-12 23:02 
QuestionReadFile bytes read not equla to bytes requested Pinmemberevs_bud23-May-12 21:27 
AnswerRe: ReadFile bytes read not equla to bytes requested PinmvpCPallini23-May-12 21:37 
QuestionCreate an incoming connection RAS server with C++ PinmemberMember 800297323-May-12 12:56 
AnswerRe: Create an incoming connection RAS server with C++ PinmemberErudite_Eric23-May-12 22:09 
GeneralRe: Create an incoming connection RAS server with C++ PinmemberMember 800297324-May-12 5:55 
QuestionCTabCtrl and CRuntimeClass - is there a better way? PinmemberVaclav_Sal23-May-12 6:08 
AnswerRe: CTabCtrl and CRuntimeClass - is there a better way? PinmemberAescleal23-May-12 6:47 
GeneralRe: CTabCtrl and CRuntimeClass - is there a better way? PinmemberVaclav_Sal23-May-12 7:42 
GeneralRe: CTabCtrl and CRuntimeClass - is there a better way? PinmemberVaclav_Sal23-May-12 10:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web02 | 2.8.140905.1 | Last Updated 16 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid