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 / xform.h < prev   
C/C++ Source or Header  |  1997-10-05  |  1KB  |  45 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.  
  21. #define XFORMCLASS "XFORMDEMO"
  22.  
  23. typedef struct _XFORMDATA
  24. {
  25. #ifndef NOT_IMPLEMENTED
  26.     XFORM xForm;
  27. #endif
  28.     POINT pObject[4];
  29.     int   nObject;
  30. } XFORMDATA;
  31. typedef XFORMDATA      *PXFORMDATA;
  32. typedef XFORMDATA NEAR *NPXFORMDATA;
  33. typedef XFORMDATA FAR  *LPXFORMDATA;
  34.  
  35.  
  36. /*
  37. ** XFORM WINDOW ROUTINES (xform.c)
  38. */
  39. HWND  FAR      CreateXFormWindow(HWND,int);
  40. LONG  APIENTRY XFormProc(HWND,UINT,WPARAM,LONG);
  41. BOOL           XFormCreateProc(HWND);
  42. VOID           XFormDestroyProc(HWND);
  43. BOOL           XFormCommandProc(HWND,WPARAM,LONG);
  44. VOID           XFormPaintProc(HWND);
  45.