Click here to Skip to main content
15,914,481 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Global Variables Pin
Carlos Antollini26-Feb-02 8:40
Carlos Antollini26-Feb-02 8:40 
GeneralRe: Global Variables Pin
Christian Graus26-Feb-02 10:56
protectorChristian Graus26-Feb-02 10:56 
GeneralRe: Global Variables Pin
Nemanja Trifunovic26-Feb-02 11:06
Nemanja Trifunovic26-Feb-02 11:06 
GeneralRe: Global Variables Pin
Christian Graus26-Feb-02 11:08
protectorChristian Graus26-Feb-02 11:08 
GeneralRe: Global Variables Pin
Nemanja Trifunovic26-Feb-02 11:28
Nemanja Trifunovic26-Feb-02 11:28 
GeneralMouse tracker Pin
alex.barylski26-Feb-02 7:45
alex.barylski26-Feb-02 7:45 
GeneralRe: Mouse tracker Pin
Chris Losinger26-Feb-02 8:06
professionalChris Losinger26-Feb-02 8:06 
GeneralRe: Mouse tracker Pin
alex.barylski26-Feb-02 9:30
alex.barylski26-Feb-02 9:30 
Thats almost what i've been doing, but still i'm getting the same problem. When the mouse first moves over the client area the first drawn rect stays put and the rest are removed properly.

CClientDC dc(this);                                 
	
//Previous X, Y coordinate pair             
static int lastX=point.x, lastY=point.y;          

//Draw the tracker
dc.DrawFocusRect(CRect(-10, -10, lastX, lastY));     //Draw at previous pos to remove  
dc.DrawFocusRect(CRect(-10, -10, point.x, point.y)); //Draw at current pos to display    
	
//Assign new location to previous location  
lastX = point.x;  
lastY = point.y; 


Any ideas...?

Thanx again!

"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
GeneralRe: Mouse tracker Pin
Chris Losinger26-Feb-02 9:49
professionalChris Losinger26-Feb-02 9:49 
GeneralRe: Mouse tracker Pin
alex.barylski26-Feb-02 10:12
alex.barylski26-Feb-02 10:12 
GeneralOpenGL Pin
Rajveer26-Feb-02 7:22
Rajveer26-Feb-02 7:22 
GeneralRe: OpenGL Pin
Simon Walton26-Feb-02 8:06
Simon Walton26-Feb-02 8:06 
GeneralVisual C++ Workspace style dialog bar Pin
Aaron Schaefer26-Feb-02 6:38
Aaron Schaefer26-Feb-02 6:38 
GeneralRe: Visual C++ Workspace style dialog bar Pin
Derek Waters26-Feb-02 11:04
Derek Waters26-Feb-02 11:04 
GeneralRe: Visual C++ Workspace style dialog bar Pin
Aaron Schaefer26-Feb-02 11:07
Aaron Schaefer26-Feb-02 11:07 
Generalbeing awkward with dialogues again... Pin
Trollslayer26-Feb-02 6:13
mentorTrollslayer26-Feb-02 6:13 
GeneralRe: being awkward with dialogues again... Pin
Nish Nishant26-Feb-02 7:02
sitebuilderNish Nishant26-Feb-02 7:02 
GeneralRe: being awkward with dialogues again... Pin
alex.barylski26-Feb-02 7:02
alex.barylski26-Feb-02 7:02 
QuestionHow can I define a new interface using ATL ????? Pin
Braulio Dez26-Feb-02 5:32
Braulio Dez26-Feb-02 5:32 
AnswerRe: How can I define a new interface using ATL ????? Pin
Carlos Antollini26-Feb-02 5:49
Carlos Antollini26-Feb-02 5:49 
GeneralRe: How can I define a new interface using ATL ????? Pin
Braulio Dez26-Feb-02 6:37
Braulio Dez26-Feb-02 6:37 
GeneralRe: How can I define a new interface using ATL ????? Pin
Carlos Antollini26-Feb-02 8:35
Carlos Antollini26-Feb-02 8:35 
GeneralSAFEARRAY UDT and connection points Pin
26-Feb-02 4:41
suss26-Feb-02 4:41 
GeneralRe: SAFEARRAY UDT and connection points Pin
Bill Wilson26-Feb-02 6:21
Bill Wilson26-Feb-02 6:21 
GeneralDestructor Question... Pin
CDuddley26-Feb-02 3:48
CDuddley26-Feb-02 3:48 

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.