I want to set center of coordinate system device to center of client device. Then I want to draw line to point where I click with mouse on client device. Under this is code of my program. Can You explain me where I make logical error?
Thank you and sorry for my bad english!
void CShowStringView::OnLButtonUp(UINT nFlags, CPoint point)
int c = dc.SetMapMode(MM_LOMETRIC);
SetViewportOrgEx ( dc, p1.x,p1.y, NULL);
CPoint a = dc.GetViewportOrg();