Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Need To Create a crawler/spider in vc++ Pin
David Crow20-Feb-09 2:20
David Crow20-Feb-09 2:20 
AnswerRe: Need To Create a crawler/spider in vc++ Pin
Ash_VCPP20-Feb-09 2:26
Ash_VCPP20-Feb-09 2:26 
QuestionRe: Need To Create a crawler/spider in vc++ Pin
David Crow20-Feb-09 2:27
David Crow20-Feb-09 2:27 
AnswerRe: Need To Create a crawler/spider in vc++ Pin
Ash_VCPP20-Feb-09 2:30
Ash_VCPP20-Feb-09 2:30 
QuestionRe: Need To Create a crawler/spider in vc++ Pin
David Crow20-Feb-09 2:34
David Crow20-Feb-09 2:34 
AnswerRe: Need To Create a crawler/spider in vc++ Pin
Ash_VCPP20-Feb-09 2:43
Ash_VCPP20-Feb-09 2:43 
QuestionNeed help on drawling line in OnPaint function Pin
John50218-Feb-09 19:59
John50218-Feb-09 19:59 
AnswerRe: Need help on drawling line in OnPaint function Pin
Cedric Moonen18-Feb-09 20:11
Cedric Moonen18-Feb-09 20:11 
What are you doing exactly in the OnPaint handler ?
What you have to think is that windows doesn't remember the drawings for your window. So it means that whenever it needs to repaint the window (for instance because you have another window on top), then it will ask your window to repaint itself (by sending a WM_PAINT message). If you don't redraw your window properly, then you will loose some data.

Also, the ebest way to erase a previous line your example is to simply request a new repainting of your window and draw the line at the new position (as everything is cleared, your previous line won't be visible anymore).

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

GeneralRe: Need help on drawling line in OnPaint function Pin
John50218-Feb-09 20:45
John50218-Feb-09 20:45 
GeneralRe: Need help on drawling line in OnPaint function Pin
Cedric Moonen18-Feb-09 21:04
Cedric Moonen18-Feb-09 21:04 
GeneralRe: Need help on drawling line in OnPaint function Pin
John50218-Feb-09 22:25
John50218-Feb-09 22:25 
AnswerRe: Need help on drawling line in OnPaint function Pin
Iain Clarke, Warrior Programmer18-Feb-09 23:04
Iain Clarke, Warrior Programmer18-Feb-09 23:04 
QuestionOnMouseMove swap and clear problem Pin
Member 337533418-Feb-09 19:57
Member 337533418-Feb-09 19:57 
AnswerRe: OnMouseMove swap and clear problem Pin
Stuart Dootson18-Feb-09 21:15
professionalStuart Dootson18-Feb-09 21:15 
GeneralRe: OnMouseMove swap and clear problem Pin
Member 337533419-Feb-09 1:56
Member 337533419-Feb-09 1:56 
AnswerRe: OnMouseMove swap and clear problem Pin
cmk19-Feb-09 20:12
cmk19-Feb-09 20:12 
Questionaccessing webcam using VC++ Pin
dhruw18-Feb-09 19:55
dhruw18-Feb-09 19:55 
AnswerRe: accessing webcam using VC++ Pin
_AnsHUMAN_ 18-Feb-09 20:34
_AnsHUMAN_ 18-Feb-09 20:34 
Questionhow to protect my process from being closed? Pin
tyr200018-Feb-09 19:47
tyr200018-Feb-09 19:47 
AnswerRe: how to protect my process from being closed? Pin
Cedric Moonen18-Feb-09 20:13
Cedric Moonen18-Feb-09 20:13 
GeneralRe: how to protect my process from being closed? Pin
CPallini18-Feb-09 21:30
mveCPallini18-Feb-09 21:30 
GeneralRe: how to protect my process from being closed? Pin
tyr200021-Feb-09 17:58
tyr200021-Feb-09 17:58 
QuestionRe: how to protect my process from being closed? Pin
CPallini22-Feb-09 0:51
mveCPallini22-Feb-09 0:51 
GeneralRe: how to protect my process from being closed? Pin
tyr200021-Feb-09 17:55
tyr200021-Feb-09 17:55 
QuestionNeed urgent help in vc++ Pin
priyankapriyanka18-Feb-09 19:08
priyankapriyanka18-Feb-09 19:08 

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.