--- mstools/samples/gdidemo/poly.h 2018/08/09 18:20:01 1.1 +++ mstools/samples/gdidemo/poly.h 2018/08/09 18:23:51 1.1.1.3 @@ -1,14 +1,14 @@ -/*---------------------------------------------------------------------------*\ -| POLYBEZIER DEMO HEADER FILE -| This is the poly-bezier header file for poly.c. This contains the -| definitions and structures for the polybezier demo window. It must be -| include in any module who references the polybezier object. -| -| -| created: 31-Oct-90 -| history: 31-Oct-90 created. -| -\*---------------------------------------------------------------------------*/ + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + #ifdef WIN16 #define APIENTRY FAR PASCAL @@ -24,6 +24,8 @@ typedef WORD WPARAM; #define MAX_BEZIER 80 #define VELMAX 10 #define VELMIN 2 +#define BEZ_CURVES 1 //Number of Curves in the Bezier +#define BEZ_PTS 3*BEZ_CURVES+1 //Number of Points is the #Curves * 3 + 1 /* @@ -32,7 +34,7 @@ typedef WORD WPARAM; */ typedef struct _BEZBUFFER { - POINT pPts[4]; + POINT pPts[BEZ_PTS]; } BEZBUFFER; typedef BEZBUFFER *PBEZBUFFER; typedef BEZBUFFER NEAR *NPBEZBUFFER; @@ -48,7 +50,7 @@ typedef struct _POLYDATA int nBezTotal; int nBezCurr; int nColor; - POINT pVel[4]; + POINT pVel[BEZ_PTS]; HANDLE hBezBuffer; } POLYDATA; typedef POLYDATA *PPOLYDATA;