|
|
1.1.1.2 ! root 1: /******************************************************************************\ 1.1 root 2: * 1.1.1.2 ! root 3: * TIMERS.H 1.1 root 4: * 1.1.1.2 ! root 5: \******************************************************************************/ 1.1 root 6: 7: 8: 1.1.1.2 ! root 9: /******************************************************************************\ ! 10: * SYMBOLIC CONSTANTS ! 11: \******************************************************************************/ 1.1 root 12: 13: #define ID_TIMER1 1 14: #define ID_TIMER2 2 15: #define ID_TIMER3 3 16: #define ID_TIMER4 4 17: 18: #define BUFSIZE 20 19: 20: #define BUTTONBORDER 5 21: #define BUTTONHEIGHT 25 22: #define TEXTHEIGHT 8 23: 24: #define TIMERINTERVAL 250 25: 26: 27: 1.1.1.2 ! root 28: /******************************************************************************\ ! 29: * GLOBAL VARIABLES ! 30: \******************************************************************************/ ! 31: ! 32: HANDLE ghInst; ! 33: HWND gahwndButtons[5]; /* array of HWNDs for the start/stop timer ! 34: * buttons. Note: the first element ! 35: * (hwndButtons[0]) is unused (since it doesn't ! 36: * correspond with a timer ID). ! 37: */ ! 38: RECT gaFlashRects[5]; /* array of RECTs for the flashing rectandgles. ! 39: * Note: the first element (flashRects[0]) is ! 40: * unused (since it doesn't correspond with a ! 41: * timer ID). ! 42: */ ! 43: ! 44: ! 45: /******************************************************************************\ ! 46: * FUNCTION PROTOTYPES ! 47: \******************************************************************************/ ! 48: ! 49: LRESULT CALLBACK MainWndProc (HWND, UINT, UINT, LONG); ! 50: VOID CALLBACK TimerFunc (HWND, UINT, UINT, DWORD); ! 51: VOID SetButtonPositions (int, int); ! 52: VOID SetFlashRectPositions (LONG, LONG); ! 53: VOID DrawStuff (HWND, HDC);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.