Advertisement
krot

API LineTo

Feb 19th, 2013
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. hDC=GetDC(hWnd);
  2. MoveToEx(hDC,10,10,NULL);//установить позицию пера
  3. POINT cor;
  4. for(i=0;i<90;++i){
  5. GetCurrentPositionEx(hDC,&cor);
  6. LineTo(hDC,cor.x+10,cor.y+10);//рисует линию до точки
  7. MoveToEx(hDC,cor.x+15,cor.x+15,NULL);//установит позиции пера
  8. }
  9.  
  10. ReleaseDC(hWnd,hDC);//освободить контекст устройства
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement