home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / gdi / gdidemo / draw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-05  |  1.3 KB  |  51 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples. 
  4. *       Copyright (C) 1993-1997 Microsoft Corporation.
  5. *       All rights reserved. 
  6. *       This source code is only intended as a supplement to 
  7. *       Microsoft Development Tools and/or WinHelp documentation.
  8. *       See these sources for detailed information regarding the 
  9. *       Microsoft samples programs.
  10. \******************************************************************************/
  11.  
  12.  
  13. #ifdef WIN16
  14. #define APIENTRY FAR PASCAL
  15. typedef WORD WPARAM;
  16. //#else
  17. //typedef DWORD WPARAM;
  18. #endif
  19.  
  20. #define DRAWCLASS  "DRAWDEMO"
  21.  
  22.  
  23. #define OBJ_RECTANGLE       0
  24. #define OBJ_ELLIPSE         1
  25. #define OBJ_ROUNDRECT       2
  26. #define OBJ_CHORD           3
  27. #define OBJ_PIE             4
  28.  
  29.  
  30. typedef struct _DRAWDATA
  31. {
  32.     int    nObject;
  33. } DRAWDATA;
  34. typedef DRAWDATA      *PDRAWDATA;
  35. typedef DRAWDATA NEAR *NPDRAWDATA;
  36. typedef DRAWDATA FAR  *LPDRAWDATA;
  37.  
  38.  
  39. /*
  40. ** DRAW WINDOW ROUTINES (draw.c)
  41. */
  42. HWND  FAR      CreateDrawWindow(HWND,int);
  43. LONG  APIENTRY DrawProc(HWND,UINT,WPARAM,LONG);
  44. BOOL           DrawCreateProc(HWND);
  45. VOID           DrawDestroyProc(HWND);
  46. BOOL           DrawCommandProc(HWND,WPARAM,LONG);
  47. VOID           DrawPaintProc(HWND);
  48.  
  49.  
  50. VOID           DrawObject(HWND);
  51.