LINE linealinea = CREATE LINElinea.beginx = 0linea.beginy = 0linea.endx = 500linea.endy = 500// linea.show()
FUNCTION uLong GetDC (uLong hwnd) & LIBRARY "user32.dll" ALIAS FOR "GetDC; ansi" FUNCTION uLong LineTo (uLong hdc, uLong x, uLong y) & LIBRARY "gdi32.dll" ALIAS FOR "LineTo; ansi"FUNCTION uLong MoveToEx (uLong hdc, uLong x, uLong y, REF POINTAPI lpPoint) & LIBRARY "gdi32.dll" ALIAS FOR "MoveToEx; ansi"
unsignedlong | Xunsignedlong | Y
uLong dcdc = GetDC(HANDLE(Parent))POINTAPI lpPoint // estructura POINTAPIlpPoint.x = 0; lpPoint.y = 0// Linea SimpleMoveToEx(dc, 10, 10, lpPoint)LineTo(dc, 120, 50)
uLong dcdc = GetDC(HANDLE(Parent))POINTAPI lpPoint // estructura POINTAPIlpPoint.x = 0; lpPoint.y = 0// Dibujando Sin(x)Integer dx, dydx = 10; dy = 20Double pX, pYpX = 0 ;pY = Sin(pX/5) * 15MoveToEx(dc, dx + pX, dy + pY, lpPoint)FOR pX = 0 TO 100 pY = Sin(pX/5) * 15 LineTo(dc, dx + pX, dy + pY)NEXT