Windows API Calls for Powerbuilder 5.0

¹®Á¦

Ellipse( )

ÇØ°á

An Ellipse function draws a circular object based on the coordinates the function receives. There is no Powerbuilder equivalent.

Global External Function:
FUNCTION boolean Ellipse(ulong hwnd,long x1,long y1,long x2,long y2) LIBRARY "Gdi32.dll"

Script:
Boolean rtn
ulong l_handle, l_device
long lv[4]
l_handle = handle(w_main)
l_device = GetDC(l_handle)
lv[ ] = {5,5,300,300}
rtn = Ellipse(l_device, lv[1], lv[2], lv[3], lv[4])

 

ÂüÁ¶