Spoly2: Draw Polygons

Click to open or copy the Spoly2 project files.

The Spoly2 sample draws polygons. The only way to make Spoly2 draw a polygon is to use its programmability interface.

The spoly2.application is one Automation object that is exposed by Spoly2. The object Spoly2.application is associated with Spoly2's main application window. It controls drawing polygons and clearing the display.

Building SDK Samples

This sample uses the following keywords:

addpoint; addref; ansistring; assert; assertsz; beginpaint; c2pstr; cenumpoint; clone; convertstratow; convertstrwtoa; coregisterclassobject; corevokeclassobject; cpoint; cpointcf; cpoly; cpolycf; create; createdisptypeinfo; createinstance; createpen; createrectrgn; createwindow; cstatbar; data_seg; debugbreak; debugstr; decobjectcount; defframeproc; define_guid; defined; defwindowproc; deleteobject; destroywindow; dim; dispatchmessage; dispgetidsofnames; dispinvoke; draw; dump; endpaint; ensureregistration; enumpoints; failed; framewndoncreate; framewndonsize; framewndproc; get_blue; get_green; get_red; getclassinfo; getclientrect; getdc; getfont; getheight; getidsofnames; getitem; getmenuitemtext; getmessage; getport; getstockobject; getsyscolor; getsystemmetrics; gettext; gettextmetrics; gettypeinfo; gettypeinfocount; getwidth; getwindow; getwindowlong; getx; getxorigin; gety; getyorigin; header; incobjectcount; initapplication; initinstance; initole; invalidaterect; invoke; isequaliid; lineto; loadcursor; loadicon; lockserver; move; moveto; movetoex; movewindow; multibytetowidechar; next; oleinitialize; olestr; oleuninitialize; outputdebugstring; outputdebugstringa; pennormal; pensize; polydraw; polydump; polyterm; postquitmessage; queryinterface; quit; regclosekey; register; registerclass; regopenkey; regsetvalue; release; releasedc; reset; revoke; rgb; rgbforecolor; safearraycopy; safearraycreate; safearraydestroy; safearraygetdim; safearraygetelement; safearraygetlbound; safearraygetubound; safearrayputelement; sbprintf; selectcliprgn; selectobject; sendmessage; set_blue; set_green; set_red; setbkmode; setfont; setheight; setport; settext; setwidth; setwindowlong; setx; setxorigin; sety; setyorigin; show; showwindow; skip; sprintf; statbarwndproc; stdmethod; stdmethod_; stdmethodimp_; stricmp; string; switch; sysallocstring; sysfreestring; sysstringlen; textout; tolower; translatemessage; tstr; uninitole; unused; update; updatewindow; va_start; variantclear; variantinit; widechartomultibyte; widestring; winmain; wmpaint; wsprintf; wvsprintf