Annotation of q_a/samples/timers/timers.h, revision 1.1.1.1

1.1       root        1: /************************************************************************\
                      2: *
                      3: *                               MAIN.H
                      4: *
                      5: \************************************************************************/
                      6: 
                      7: 
                      8: 
                      9: /************************************************************************\
                     10: *                         SYMBOLIC CONSTANTS
                     11: \************************************************************************/
                     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: 
                     28: /************************************************************************\
                     29: *                          GLOBAL VARIABLES
                     30: \************************************************************************/
                     31: 
                     32: HANDLE hInst;
                     33: HWND   hwndButtons[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   flashRects[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: LONG APIENTRY MainWndProc  (HWND, UINT, UINT, LONG);
                     50: WORD APIENTRY TimerFunc    (HWND, WORD, int,  DWORD);
                     51: void SetButtonPositions    (int,  int);
                     52: void SetFlashRectPositions (LONG, LONG);
                     53: void DrawStuff             (HWND, HDC);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.