取自charset.h的其他数字定义

发表于:2007-06-30来源:作者:点击数: 标签:
#define char_width 8 #define char_height 16 static unsigned char char_bits[11][char_height] = { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x66, 0xC3, 0xC3, 0xDB, 0xDB, 0xC3, 0xC3, 0x66, 0x3C }, // 0 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0
#define char_width 8
#define char_height 16

static unsigned char char_bits[11][char_height] =
{
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x66, 0xC3, 0xC3,
        0xDB, 0xDB, 0xC3, 0xC3, 0x66, 0x3C }, // 0
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x1C, 0x1E, 0x18,
        0x18, 0x18, 0x18, 0x18, 0x18, 0x7E }, // 1
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x63, 0x60, 0x30,
        0x18, 0x0C, 0x06, 0x03, 0x63, 0x7F }, // 2
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x63, 0x60, 0x60,
        0x3C, 0x60, 0x60, 0x60, 0x63, 0x3E }, // 3
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x38, 0x3C, 0x36,
        0x33, 0x7F, 0x30, 0x30, 0x30, 0x78 }, // 4
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x03, 0x03, 0x03,
        0x3F, 0x60, 0x60, 0x60, 0x63, 0x3E }, // 5
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x06, 0x03, 0x03,
        0x3F, 0x63, 0x63, 0x63, 0x63, 0x3E }, // 6
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x63, 0x60, 0x60,
        0x30, 0x18, 0x0C, 0x0C, 0x0C, 0x0C }, // 7
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x63, 0x63, 0x63,
        0x3E, 0x63, 0x63, 0x63, 0x63, 0x3E }, // 8
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x63, 0x63, 0x63,
        0x7E, 0x60, 0x60, 0x60, 0x30, 0x1E }, // 9
    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18,
        0x00, 0x00, 0x00, 0x18, 0x18, 0x00 }, // :
};
改变颜色请参考:
http://msdn.microsoft.com/library/devprods/vs6/visualc/vcsample/_sample_mfc_counter.htm

原文转自:http://www.ltesting.net