home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / wpj_mag / wpjv1n8.zip / GDI.ZIP / INVID.ZIP / INVID.H < prev    next >
C/C++ Source or Header  |  1993-08-08  |  939b  |  50 lines

  1.  
  2. /*
  3. This is used in the function WndProc() to find
  4. the size of the array messages[].
  5. */
  6. #define dim(x) (sizeof(x) / sizeof(x[0]))
  7.  
  8.  
  9. // our window size
  10. #define    WINDOW_WIDTH    400
  11. #define    WINDOW_HEIGHT    400
  12.  
  13.  
  14.  
  15. // Function Prototypes
  16. long FAR PASCAL WndProc (HWND, WORD, WORD, LONG);
  17. BOOL InitApplication(HANDLE hInstance);
  18. BOOL InitInstance(HANDLE hInstance, WORD nCmdShow);
  19.  
  20. long DoKeydown(HWND hWnd, WORD wMsg, WORD wParam, LONG lParam);
  21. long DoKeyup(HWND hWnd, WORD wMsg, WORD wParam, LONG lParam);
  22. long DoCreate();
  23. long DoDestroy();
  24.  
  25. void DoInv(void);
  26. void BaseInit(void);
  27. void BaseAnimation (void);
  28. void DrawBitmap (HBITMAP hBitmap, int xStart, int yStart);
  29.  
  30. // Global variables
  31.  
  32. char szAppName [] = "Invid";
  33.  
  34. HANDLE hInst;
  35.  
  36. HWND hWnd;
  37.  
  38. int AnimeStep = 1;
  39.  
  40. BOOL    fRightKeyState = 0,
  41.         fLeftKeyState = 0;
  42.  
  43. struct BaseStruct {
  44.     short x ;
  45.     short y ;
  46.     HBITMAP Bmp ;
  47.     };
  48.  
  49. struct BaseStruct Base;
  50.