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

C / C++ / MFC

 
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 
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 
How would the second turn it to its original color, if it's done at a different location?
As I see it, it's 2 draws, one that blanks the last temporary element, and a second that draws the new temporary element.
Here is the code:

//Define a device context object for the view<br />
	CClientDC aDC(this);<br />
	aDC.SetROP2(R2_NOTXORPEN);		// Set the drawing mode<br />
	if((nFlags & MK_LBUTTON) && (this == GetCapture()))<br />
	{<br />
		m_SecondPoint = point;		//Save the current cursor position<br />
		if(m_pTempElement)<br />
		{<br />
			// Redraw the old element so it disappears from the view<br />
			m_pTempElement->Draw(&aDC);<br />
		}<br />
<br />
		// Create a temporary element of the type and color that<br />
		// is recorded in the document object, and draw it<br />
		m_pTempElement = CreateElement();	// Create a new element<br />
		m_pTempElement->Draw(&aDC);			// Draw the element<br />
	}


Thanks!
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 
GeneralRe: plotting in real time Pin
Mark Salsbery15-Jul-07 9:51
Mark Salsbery15-Jul-07 9:51 
GeneralRe: plotting in real time Pin
Sam Rens15-Jul-07 9:57
Sam Rens15-Jul-07 9:57 
GeneralRe: plotting in real time Pin
Mark Salsbery15-Jul-07 10:04
Mark Salsbery15-Jul-07 10:04 
Questioncreating dialogs with winapi Pin
Dane Grant15-Jul-07 6:48
Dane Grant15-Jul-07 6: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.