有没有这种函数啊?还是只有自己算?

解决方案 »

  1.   

    嗯。没错。The LineDDA function determines which pixels should be highlighted for a line defined by the specified starting and ending points. BOOL LineDDA(
      int nXStart,             // x-coordinate of starting point
      int nYStart,             // y-coordinate of starting point
      int nXEnd,               // x-coordinate of ending point
      int nYEnd,               // y-coordinate of ending point
      LINEDDAPROC lpLineFunc,  // callback function
      LPARAM lpData            // application-defined data
    );The LineDDAProc function is an application-defined callback function used with the LineDDA function. It is used to process coordinates. The LINEDDAPROC type defines a pointer to this callback function. LineDDAProc is a placeholder for the application-defined function name. VOID CALLBACK LineDDAProc(
      int X,          // x-coordinate of point
      int Y,          // y-coordinate of point
      LPARAM lpData   // application-defined data
    );