Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.1 KiB

  1. /******************/
  2. /* file: grafix.h */
  3. /******************/
  4. /*** Bitmaps ***/
  5. #define dxBlk 16
  6. #define dyBlk 16
  7. #define dxLed 13
  8. #define dyLed 23
  9. #define dxButton 24
  10. #define dyButton 24
  11. #define dxFudge 2
  12. #define dxLeftSpace 12
  13. #define dxRightSpace 12
  14. #define dyTopSpace 12
  15. #define dyBottomSpace 12
  16. #define dxGridOff dxLeftSpace
  17. #define dyGridOff (dyTopLed+dyLed+16)
  18. #define dxLeftBomb (dxLeftSpace + 5)
  19. #define dxRightTime (dxRightSpace + 5)
  20. #define dyTopLed (dyTopSpace + 4)
  21. /*** Macros ***/
  22. #ifdef DEBUG
  23. //-protect-#define Oops(szMsg)
  24. // MessageBox(NULL, szMsg, "Oops", MB_OK | MB_ICONHAND)
  25. #else
  26. #define Oops(szMsg)
  27. #endif
  28. /*** Routines ***/
  29. BOOL FInitLocal(VOID);
  30. VOID CleanUp(VOID);
  31. VOID DrawBlk(HDC, INT, INT);
  32. VOID DisplayBlk(INT, INT);
  33. VOID DrawButton(HDC, INT);
  34. VOID DisplayButton(INT);
  35. VOID DrawGrid(HDC);
  36. VOID DisplayGrid(VOID);
  37. VOID DrawBombCount(HDC);
  38. VOID DisplayBombCount(VOID);
  39. VOID DrawTime(HDC);
  40. VOID DisplayTime(VOID);
  41. VOID DrawScreen(HDC);
  42. VOID DisplayScreen(VOID);
  43. BOOL FLoadBitmaps(VOID);
  44. VOID FreeBitmaps(VOID);
  45.