--- q_a/samples/timers/timers.h 2018/08/09 18:29:19 1.1 +++ q_a/samples/timers/timers.h 2018/08/09 18:29:38 1.1.1.2 @@ -1,14 +1,14 @@ -/************************************************************************\ +/******************************************************************************\ * -* MAIN.H +* TIMERS.H * -\************************************************************************/ +\******************************************************************************/ -/************************************************************************\ -* SYMBOLIC CONSTANTS -\************************************************************************/ +/******************************************************************************\ +* SYMBOLIC CONSTANTS +\******************************************************************************/ #define ID_TIMER1 1 #define ID_TIMER2 2 @@ -25,29 +25,29 @@ -/************************************************************************\ -* GLOBAL VARIABLES -\************************************************************************/ - -HANDLE hInst; -HWND hwndButtons[5]; /* array of HWNDs for the start/stop timer - * buttons. Note: the first element - * (hwndButtons[0]) is unused (since it doesn't - * correspond with a timer ID). - */ -RECT flashRects[5]; /* array of RECTs for the flashing rectandgles. - * Note: the first element (flashRects[0]) is - * unused (since it doesn't correspond with a - * timer ID). - */ - - -/************************************************************************\ -* FUNCTION PROTOTYPES -\************************************************************************/ - -LONG APIENTRY MainWndProc (HWND, UINT, UINT, LONG); -WORD APIENTRY TimerFunc (HWND, WORD, int, DWORD); -void SetButtonPositions (int, int); -void SetFlashRectPositions (LONG, LONG); -void DrawStuff (HWND, HDC); +/******************************************************************************\ +* GLOBAL VARIABLES +\******************************************************************************/ + +HANDLE ghInst; +HWND gahwndButtons[5]; /* array of HWNDs for the start/stop timer + * buttons. Note: the first element + * (hwndButtons[0]) is unused (since it doesn't + * correspond with a timer ID). + */ +RECT gaFlashRects[5]; /* array of RECTs for the flashing rectandgles. + * Note: the first element (flashRects[0]) is + * unused (since it doesn't correspond with a + * timer ID). + */ + + +/******************************************************************************\ +* FUNCTION PROTOTYPES +\******************************************************************************/ + +LRESULT CALLBACK MainWndProc (HWND, UINT, UINT, LONG); +VOID CALLBACK TimerFunc (HWND, UINT, UINT, DWORD); +VOID SetButtonPositions (int, int); +VOID SetFlashRectPositions (LONG, LONG); +VOID DrawStuff (HWND, HDC);