何か根本的に間違ってるような気がするのですが。。よろしくお願いします。
#uselib "user32.dll" #cfunc GetDesktopWindow "GetDesktopWindow" #cfunc GetDC "GetDC" int #func ReleaseDC "ReleaseDC" int, int #uselib "gdi32.dll" #func Polyline "Polyline" int, var, int #define NULL 0 hwnTarget = GetDesktopWindow() hdcTarget = GetDC(NULL) slx = 0 : sly = 0 : elx = 1000 : ely = 1000 point = slx, sly, elx, ely Polyline hdcTarget,point,2 ReleaseDC hwnTarget,hdcTarget