Click here to Skip to main content
15,918,125 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: oops. i definately blew it Pin
Maxwell Chen18-May-04 18:35
Maxwell Chen18-May-04 18:35 
AnswerTemplate Specialisation Pin
Andrew Walker18-May-04 19:03
Andrew Walker18-May-04 19:03 
AnswerRe: how to get variable type Pin
toxcct18-May-04 22:18
toxcct18-May-04 22:18 
AnswerRe: how to get variable type Pin
Anthony_Yio18-May-04 22:20
Anthony_Yio18-May-04 22:20 
AnswerRe: how to get variable type Pin
David Crow19-May-04 4:04
David Crow19-May-04 4:04 
Generaldrawing while clicking Pin
kfaday18-May-04 14:27
kfaday18-May-04 14:27 
GeneralRe: drawing while clicking Pin
Christian Graus18-May-04 18:30
protectorChristian Graus18-May-04 18:30 
GeneralRe: drawing while clicking Pin
kfaday19-May-04 3:06
kfaday19-May-04 3:06 
well, i tried with this code:
<br />
		CClientDC dc(this);<br />
		if ((p.x!=0)&&(p.y!=0))<br />
		{<br />
			dc.MoveTo(point.x, point.y);<br />
			dc.LineTo(p.x,p.y);<br />
		}<br />
		dc.MoveTo(point.x, point.y);<br />
		dc.LineTo(point.x+1, point.y+1);<br />
		p=dc.GetCurrentPosition();<br />


p is a CPoint variable that i added to the class, and in the constructor i initialize it with zero.
The problem is that when i draw by moving the mouse while it is clicked, and then i unclick the mouse, if i click it again somewhere else, it draws a line from the last point where i clicked to the new position.
any ideas?
thanks!
GeneralRe: drawing while clicking Pin
Christian Graus19-May-04 11:38
protectorChristian Graus19-May-04 11:38 
GeneralRe: drawing while clicking Pin
kfaday19-May-04 14:41
kfaday19-May-04 14:41 
GeneralNEW AT FUNCTIONS, PLEASE HELP, URGETNT Pin
ashrafak18-May-04 13:07
ashrafak18-May-04 13:07 
GeneralRe: NEW AT FUNCTIONS, PLEASE HELP, URGETNT Pin
Pablo Hernandez Valdes18-May-04 15:03
Pablo Hernandez Valdes18-May-04 15:03 
GeneralRe: NEW AT FUNCTIONS, PLEASE HELP, URGETNT Pin
Christian Graus18-May-04 18:31
protectorChristian Graus18-May-04 18:31 
GeneralOverloading operator== in derived classes Pin
Wheatbread18-May-04 11:55
Wheatbread18-May-04 11:55 
GeneralRe: Overloading operator== in derived classes Pin
kfaday18-May-04 15:19
kfaday18-May-04 15:19 
GeneralRe: Overloading operator== in derived classes Pin
Wheatbread19-May-04 4:50
Wheatbread19-May-04 4:50 
QuestionWhere AM I ? Pin
john john mackey18-May-04 11:52
john john mackey18-May-04 11:52 
AnswerRe: Where AM I ? Pin
Garth J Lancaster18-May-04 12:05
professionalGarth J Lancaster18-May-04 12:05 
GeneralRe: Where AM I ? Pin
vcplusplus18-May-04 12:23
vcplusplus18-May-04 12:23 
GeneralRe: Where AM I ? Pin
Garth J Lancaster18-May-04 12:29
professionalGarth J Lancaster18-May-04 12:29 
GeneralRe: Where AM I ? Pin
john john mackey18-May-04 13:17
john john mackey18-May-04 13:17 
QuestionExceptions after building for Release, but building for Debug mode is OK? Pin
jerry1211a18-May-04 11:12
jerry1211a18-May-04 11:12 
AnswerRe: Exceptions after building for Release, but building for Debug mode is OK? Pin
Marcus Spitzmiller18-May-04 12:53
Marcus Spitzmiller18-May-04 12:53 
GeneralRe: Exceptions after building for Release, but building for Debug mode is OK? Pin
jerry1211a18-May-04 14:27
jerry1211a18-May-04 14:27 
GeneralRe: Exceptions after building for Release, but building for Debug mode is OK? Pin
Marcus Spitzmiller19-May-04 4:43
Marcus Spitzmiller19-May-04 4: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.