当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 多多指教 ......
    摘要: 用exec cics handle abend 命令handle不到这个消息。 请问有什么办法吗? ......


画直线

VC中有没有画直线的函数,是不是要先Moveto(x1,y1)再Lineto(x2,y2);

NO.1   作者: StdAfx

MFC里面确实就是这两个。  
   
  你还有别的选择,WIN32   API:  
  BOOL   LineTo(  
      HDC   hdc,         //   device   context   handle  
      int   nXEnd,     //   x-coordinate   of   ending   point  
      int   nYEnd       //   y-coordinate   of   ending   point  
  );  
   
  BOOL   MoveToEx(  
      HDC   hdc,                     //   handle   to   device   context  
      int   X,                         //   x-coordinate   of   new   current   position  
      int   Y,                         //   y-coordinate   of   new   current   position  
      LPPOINT   lpPoint       //   old   current   position  
  );  
   
  或者你自己写一个画直线的函数也是可以的。  
 

NO.2   作者: SatanLi1982

对先Moveto(x1,y1)再Lineto(x2,y2);


    摘要: 谢谢! 比如将a定义为可放入的图片的变量? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE