Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. CRect r;
  2. GetClientRect(&r);
  3. int x = r.Width()/2;
  4. int y = r.Height()/2;
  5. dc->SetMapMode(MM_ISOTROPIC);
  6. dc->SetWindowExt(1,-1);
  7. dc->SetViewportOrg(x,y);
  8. dc->SetViewportExt(1,1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement