This example calls WinMakePoints to convert a 3-element array of points from window points (WPOINT structure) to graphics points (POINTL structure).

#define INCL_WINRECTANGLES      /* Window Rectangle Functions   */
#include <os2.h>

HAB     hab;            /* anchor-block handle                  */
BOOL  fSuccess;         /* success indicator                    */
/* array of window points */
WPOINT pwptppt[3] = {0,0,0,0,20,0,50,0,100,0,60,0};

/* convert points */
fSuccess = WinMakePoints(hab, pwptppt, 3);


[Back] [Next]