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

1.1.1.3 ! root        1: 
        !             2: /******************************************************************************\
        !             3: *       This is a part of the Microsoft Source Code Samples. 
        !             4: *       Copyright (C) 1993 Microsoft Corporation.
        !             5: *       All rights reserved. 
        !             6: *       This source code is only intended as a supplement to 
        !             7: *       Microsoft Development Tools and/or WinHelp documentation.
        !             8: *       See these sources for detailed information regarding the 
        !             9: *       Microsoft samples programs.
        !            10: \******************************************************************************/
        !            11: 
1.1.1.2   root       12: /******************************************************************************\
1.1       root       13: *
1.1.1.2   root       14: *                                  TIMERS.H
1.1       root       15: *
1.1.1.2   root       16: \******************************************************************************/
1.1       root       17: 
                     18: 
                     19: 
1.1.1.2   root       20: /******************************************************************************\
                     21: *                              SYMBOLIC CONSTANTS
                     22: \******************************************************************************/
1.1       root       23: 
                     24: #define ID_TIMER1      1
                     25: #define ID_TIMER2      2
                     26: #define ID_TIMER3      3
                     27: #define ID_TIMER4      4
                     28: 
                     29: #define BUFSIZE        20
                     30: 
                     31: #define BUTTONBORDER   5
                     32: #define BUTTONHEIGHT   25
                     33: #define TEXTHEIGHT     8
                     34: 
                     35: #define TIMERINTERVAL  250
                     36: 
                     37: 
                     38: 
1.1.1.2   root       39: /******************************************************************************\
                     40: *                               GLOBAL VARIABLES
                     41: \******************************************************************************/
                     42: 
                     43: HANDLE ghInst;
                     44: HWND   gahwndButtons[5];  /*  array of HWNDs for the start/stop timer
                     45:                            *  buttons. Note: the first element
                     46:                            *  (hwndButtons[0]) is unused (since it doesn't
                     47:                            *  correspond with a timer ID).
                     48:                            */
                     49: RECT   gaFlashRects[5];   /*  array of RECTs for the flashing rectandgles.
                     50:                            *  Note: the first element (flashRects[0]) is
                     51:                            *  unused (since it doesn't correspond with a
                     52:                            *  timer ID).
                     53:                            */
                     54: 
                     55: 
                     56: /******************************************************************************\
                     57: *                              FUNCTION PROTOTYPES
                     58: \******************************************************************************/
                     59: 
                     60: LRESULT CALLBACK MainWndProc  (HWND, UINT, UINT, LONG);
                     61: VOID    CALLBACK TimerFunc    (HWND, UINT, UINT, DWORD);
                     62: VOID SetButtonPositions    (int,  int);
                     63: VOID SetFlashRectPositions (LONG, LONG);
                     64: 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.