The program reads an ini file upon launch for the configuration.

==Library Functions==

sscanf(szBuffer, "%d", &nHour) treats input "011" as decimal number 11, rather
than octadecimal number 11 = 9 (decimal).

==Ini File Format==

WIDTH=%d
HEIGHT=%d   - (1)
HOUR=%d
MIN=%d      - (2)
MODE=%d     - (3)

Notes:
1 - width and height for the program window
2 - time (hour and minute) for alarm
3 - the alarm mode; 0, 1, 2

The alarm mode: 0 - off; 1 - on once; 2 - always on

==Window Painting==

In WM_PAINT processing, IsIconic() is used to determine whether the window is
minimized.  This is useful only when the window class icon is set to NULL.  If
the class icon is set to NULL, WM_PAINT is sent to the window when the icon of
the window needs to be repainted.  Otherwise, only WM_PAINTICON is sent when
the window is minimized.  This is mostly useful for Windows 3.1.

==Configuration Dialog==

The alarm time can be "%d:%d", or "%d".  "%d:%d" is interpreted as hour and
minute.  "%d" is interpreted as number of minutes from now, and alarm is on
after that amount of minutes.

==Digits Painting==

In gdigit.c, we see arrays pt1 to pt7.  They represent points of polygons that
compose the graphic digit.  They are designed to be upright, and before actual
drawing, they are rotated clockwisely for a small angle, to look "forward
inclined".

The colon in the center of the clock display takes the width of one digit.  Its
position, two points (47, 55), (47, 94), is center in X axis and lower than
middle in Y axis.

In gd_ConvertPoint() there are two constants used: GDIGIT_PADDING_X and
GDIGIT_PADDING_Y.  These two constants are used to decrease the x and y
position values, and GDIGIT_PADDING_X = 20, GDIGIT_PADDING_Y = 18.  This is
because the positions of the polygons of the digit begin at a positive
position, near (20, 18).

GDIGIT_EXTENT_X is GDIGIT_PADDING_X plus the bare width of the digit.
GDIGIT_EXTENT_Y is GDIGIT_EXTENT_Y plus the bare height of the digit.
Optionally, a portion of GDIGIT_BACKINDENT can be added to GDIGIT_EXTENT_X.
