Click here to Skip to main content
16,006,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLine drawing in MFC Pin
DGit8-Sep-07 12:30
DGit8-Sep-07 12:30 
AnswerRe: Line drawing in MFC Pin
Christian Graus8-Sep-07 12:32
protectorChristian Graus8-Sep-07 12:32 
GeneralRe: Line drawing in MFC Pin
DGit8-Sep-07 12:49
DGit8-Sep-07 12:49 
GeneralRe: Line drawing in MFC Pin
Christian Graus8-Sep-07 16:12
protectorChristian Graus8-Sep-07 16:12 
GeneralRe: Line drawing in MFC Pin
bob169728-Sep-07 17:12
bob169728-Sep-07 17:12 
GeneralRe: Line drawing in MFC Pin
DGit10-Sep-07 6:42
DGit10-Sep-07 6:42 
AnswerRe: Line drawing in MFC [modified] Pin
bob169728-Sep-07 13:01
bob169728-Sep-07 13:01 
GeneralRe: Line drawing in MFC Pin
DGit8-Sep-07 13:26
DGit8-Sep-07 13:26 
That's roughly what I've been trying to do but looking at your DrawRubberBand() function I don't see how:

if (m_bTracking) {
dc.MoveTo(m_pointStart);
dc.LineTo(m_pointLast);
}

erases the previous line. I've tried invalidating the rectangle containing the previous line and drawing the new one but that just causes flashing on the screen and an occasional part of the new line.

DGit
GeneralRe: Line drawing in MFC Pin
bob169728-Sep-07 13:31
bob169728-Sep-07 13:31 
GeneralRe: Line drawing in MFC Pin
DGit9-Sep-07 8:59
DGit9-Sep-07 8:59 
QuestionGet User Picture Pin
Perspx8-Sep-07 12:12
Perspx8-Sep-07 12:12 
AnswerRe: Get User Picture Pin
Mark Salsbery8-Sep-07 12:28
Mark Salsbery8-Sep-07 12:28 
Questionstrtok problem Pin
gizmokaka8-Sep-07 10:41
gizmokaka8-Sep-07 10:41 
AnswerRe: strtok problem Pin
Michael Dunn8-Sep-07 11:16
sitebuilderMichael Dunn8-Sep-07 11:16 
AnswerRe: strtok problem Pin
Robert Surtees8-Sep-07 11:38
Robert Surtees8-Sep-07 11:38 
QuestionMessage Loop in DLL Pin
vaibhav khattri8-Sep-07 10:26
vaibhav khattri8-Sep-07 10:26 
AnswerRe: Message Loop in DLL Pin
Mark Salsbery8-Sep-07 11:17
Mark Salsbery8-Sep-07 11:17 
QuestionVisual C++.net 2003 missing project property pages Pin
markdesmarais20078-Sep-07 9:33
markdesmarais20078-Sep-07 9:33 
QuestionLPSTR_TEXTCALLBACK Pin
paper678-Sep-07 7:03
paper678-Sep-07 7:03 
AnswerRe: LPSTR_TEXTCALLBACK Pin
Mark Salsbery8-Sep-07 8:32
Mark Salsbery8-Sep-07 8:32 
AnswerRe: LPSTR_TEXTCALLBACK Pin
Michael Dunn8-Sep-07 8:40
sitebuilderMichael Dunn8-Sep-07 8:40 
QuestionSOLVED: Problem with events MFC [modified] Pin
progDes8-Sep-07 6:32
progDes8-Sep-07 6:32 
AnswerRe: Problem with events MFC Pin
Mark Salsbery8-Sep-07 7:31
Mark Salsbery8-Sep-07 7:31 
GeneralRe: Problem with events MFC Pin
progDes8-Sep-07 7:38
progDes8-Sep-07 7:38 
QuestionRe: Problem with events MFC Pin
Mark Salsbery8-Sep-07 8:31
Mark Salsbery8-Sep-07 8:31 

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.