Re: MoveTo / LineTo



Are you sure that (x1,y1) != (0,0)? The code below should work.
joe

On 17 Feb 2006 14:11:00 -0800, "kathy" <yqin_99@xxxxxxxxx> wrote:

I try to draw line from, say (x1,y1) to (x2,y2).

I use:

pDC->MoveTo(x1,y1);
pDC->LineTo(x2,y2);

But I always got line (0,0) to (x1,y1), why?
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.