Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to pass the parameter in WinMain() Pin
Michael Dunn16-Jul-07 6:48
sitebuilderMichael Dunn16-Jul-07 6:48 
Questionusing lib Pin
kcynic15-Jul-07 12:46
kcynic15-Jul-07 12:46 
AnswerRe: using lib Pin
DevMentor.org17-Jul-07 7:11
DevMentor.org17-Jul-07 7:11 
Questionvector Pin
dellthinker15-Jul-07 12:34
dellthinker15-Jul-07 12:34 
AnswerRe: vector Pin
Axter15-Jul-07 17:08
professionalAxter15-Jul-07 17:08 
AnswerRe: vector Pin
Stephen Hewitt15-Jul-07 19:09
Stephen Hewitt15-Jul-07 19:09 
QuestionRe: vector Pin
David Crow16-Jul-07 4:28
David Crow16-Jul-07 4:28 
QuestionR2_NOTXORPEN drawing mode question Pin
perrin486915-Jul-07 11:22
perrin486915-Jul-07 11:22 
Hello, I'm new to MFC, and there's an application in a book I'm learning from which works 100% well, but there's something there I don't manage to understand.
The author there built a Sketcher application, which draws lines or rectangles or such by dragging with the mouse. The OnMouseMove function redraws a temp object every time, with the R2_NOTXORPEN set, so it's supposed to erase the temporary element drawn, and create a rubber-banding mechanism. Now, my question is, if I drag a temporary element over the background, and over other elements drawn in the background, how is it the temporary object doesn't erase them, after it's drawn again? According to the book, the R2_NOTXORPEN mode makes it so the element is redrawn white, so it should delete everything it goes over.
The book is Beginning MFC Programming by Ivor Horton.
Thanks for your help, and sorry for the length, I tried to keep it as short as possible.
AnswerRe: R2_NOTXORPEN drawing mode question Pin
Mark Salsbery15-Jul-07 13:02
Mark Salsbery15-Jul-07 13:02 
GeneralRe: R2_NOTXORPEN drawing mode question Pin
perrin486915-Jul-07 13:48
perrin486915-Jul-07 13:48 
GeneralRe: R2_NOTXORPEN drawing mode question Pin
Mark Salsbery15-Jul-07 13:52
Mark Salsbery15-Jul-07 13:52 
GeneralRe: R2_NOTXORPEN drawing mode question Pin
perrin486915-Jul-07 14:07
perrin486915-Jul-07 14:07 
GeneralRe: R2_NOTXORPEN drawing mode question [modified] Pin
Mark Salsbery15-Jul-07 14:12
Mark Salsbery15-Jul-07 14:12 
GeneralRe: R2_NOTXORPEN drawing mode question Pin
perrin486915-Jul-07 14:28
perrin486915-Jul-07 14:28 
QuestionBringing MFC app to web - which technology horse to ride? Pin
Mike A. Jones15-Jul-07 10:15
Mike A. Jones15-Jul-07 10:15 
AnswerRe: Bringing MFC app to web - which technology horse to ride? Pin
Mark Salsbery15-Jul-07 11:21
Mark Salsbery15-Jul-07 11:21 
AnswerRe: Bringing MFC app to web - which technology horse to ride? Pin
jhwurmbach16-Jul-07 0:00
jhwurmbach16-Jul-07 0:00 
Questiondifferent %f for variables in a string Pin
Dane Grant15-Jul-07 9:20
Dane Grant15-Jul-07 9:20 
QuestionRe: different %f for variables in a string Pin
Mark Salsbery15-Jul-07 9:30
Mark Salsbery15-Jul-07 9:30 
AnswerRe: different %f for variables in a string Pin
Dane Grant15-Jul-07 9:35
Dane Grant15-Jul-07 9:35 
GeneralRe: different %f for variables in a string Pin
Mark Salsbery15-Jul-07 9:45
Mark Salsbery15-Jul-07 9:45 
GeneralRe: different %f for variables in a string Pin
David Crow16-Jul-07 4:30
David Crow16-Jul-07 4:30 
Questionplotting in real time Pin
Sam Rens15-Jul-07 8:50
Sam Rens15-Jul-07 8:50 
QuestionRe: plotting in real time Pin
Mark Salsbery15-Jul-07 9:35
Mark Salsbery15-Jul-07 9:35 
AnswerRe: plotting in real time Pin
Sam Rens15-Jul-07 9:43
Sam Rens15-Jul-07 9:43 

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.