【VC开源代码栏目提醒】:网学会员,鉴于大家对VC开源代码十分关注,论文会员在此为大家搜集整理了“CREDITS.CPP”一文,供大家参考学习!
// credits.cpp : implementation file
//**************************************************************************
// NOTE: Be sure you have defined your bitmaps by assigning them a resource
// id of a quoted string (i.e. "BITMAP1" instead of ID_BITMAP1) since
// you will be designating the bitmaps by their quoted resource string
// in this file.
// Be sure that you do not leave a space between the quoted bitmap
// resource name and the \b identifier when setting up your array.
// "BITMAP1\b" = correct
// "BITMAP1 \b" = incorrect
// Thanks to Gerry Shaw for submitting code to fix the redraw so that only
// the actual display window refreshes each time instead of the entire
// dialog which was causing annoying flicker.
#include "stdafx.h"
#include "resource.h"
#include "credits.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
#define SCROLLAMOUNT -1
#define DISPLAY_SLOW 70
#define DISPLAY_MEDIUM 40
#define DISPLAY_FAST 10
#define DISPLAY_SPEED DISPLAY_MEDIUM
#define RED RGB(255,0,0)
#define GREEN RGB(0,255,0)
#define BLUE RGB(0,0,255)
#define WHITE RGB(255,255,255)
#define YELLOW RGB(255,255,0)
#define TURQUOISE RGB(0,255,255)
#define PURPLE RGB(255,0,255)
#define BLACK RGB(0,0,0)
#define BACKGROUND_COLOR BLACK
#define TOP_LEVEL_TITLE_COLOR RED
#define TOP_LEVEL_GROUP_COLOR YELLOW
#define GROUP_TITLE_COLOR TURQUOISE
#define NORMAL_TEXT_COLOR WHITE
// You can set font heights here to suit your taste
#define TOP_LEVEL_TITLE_HEIGHT 21
#define TOP_LEVEL_GROUP_HEIGHT 19
#define GROUP_TITLE_HEIGHT 17
#define NORMAL_TEXT_HEIGHT 15
// these define the escape sequences to suffix each array line with. They
// are listed in order of descending font size.
#define TOP_LEVEL_TITLE '\n'
#define TOP_LEVEL_GROUP '\r'
#define GROUP_TITLE '\t'
#define NORMAL_TEXT '\f'
#define DISPLAY_BITMAP '\b'
// Enter the text and bitmap resource string identifiers which are to
// appear in the scrolling list. Append each non-empty string entry with
// an escape character corresponding to the desired font effect. Empty
// strings do not get a font assignment.
// (see #defines above)
//
// Array count. Make sure this keeps up with how many lines there are
// in the array!
#define ARRAYCOUNT 93
char *pArrCredit[] = { "MAIN APPLICATION TITLE \n",
"",
"Copyright (c) 1998 \f",
"Company Name \f",
"All Rights Reserved \f",
"",
"BITMAP1\b", // MYBITMAP is a quoted bitmap resource
"",
"",
"Project Lead \t",
"",
"Joe Schmoe \f",
"",
"",
"Technical Lead \t",
"",
"John Smith \f",
"",
"",
"Engineering Lead \t",
"",
"Stan the Man \f",
"",
"",
"Product Lead \t",
"",
"Mary Jones \f",
"",
"",
"Engineering \t",
"",
"Hank Smith, Joe Paterno, Frank Eiler, John Madden \f",
"Harry Houdini, Mary Marcus, Jane Lane, Sue Shoe, Joe Gogo \f",
"John Endling, Bob Herston, Rick Mayer \f",
"",
"",
"BITMAP1\b", // BARGRAPH1 is a quoted bitmap resource
"",
"",
"QA \t",
"",
"Mary Hech, Sam Bamnm, Ron Fonn, Steve Waeve \f",
"Igor Borisnoff, FellaB \f",
"",
"",
"Documentation \t",
"",
"Marge Farge, Joanne Hone, Annette Fune \f",
"",
"",
"Technical Program Office \t",
"",
"Burf Murphy, Foll Roller \f",
"",
"",
"",
"Systems Support \t",
"",
"Bendy Land \f",
"",
"",
"Administrative Support \t",
"",
"Donna Fonna \f",
"",
"",
"* * * * * * * * * \t",
"",
"",
"BITMAP2\b",
"",
"Project Manager \t",
"",
"Fred Foghorn \f",
"",
"",
"Engineering \t",
"",
"Hank Bank, Ray Fay, Bill Sill, Mark Dark, Peter Leter \f",
"Lev Bef \f",
"",
"",
"Quality Assurance \t",
"",
"Biff Bin \f",
"",
"",
"",
"BITMAP3\b",
"",
"",
"",
""
};
//////////////////////////////////////////////////