how to convert from device coordinates into physical coordinates
-
Hi I used logical coordinates in my program,in such functions as MoveTo() ,LineTo()etc.But if I scroll the client are i am not able to get those points.i am using CScrollView only.how to convert the coordinates and get the points? thanks in advance. Pathi bhikshapathi_g@semanticspace.com
-
Hi I used logical coordinates in my program,in such functions as MoveTo() ,LineTo()etc.But if I scroll the client are i am not able to get those points.i am using CScrollView only.how to convert the coordinates and get the points? thanks in advance. Pathi bhikshapathi_g@semanticspace.com
Assuming that you're writing a method of CScrollView-derived class, you'd code like this:
CClientDC dc(this);
OnPrepareDC(&dc);
dc.LPtoDP(&point);Tomasz Sowinski -- http://www.shooltz.com