1 #ifndef MESSAGE_INCLUDED 2 #define MESSAGE_INCLUDED 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 // 9 // counter starts off negative (rand() < 0)..when it gets 10 // to zero the message starts to display 11 // 12 typedef struct 13 { 14 WORD message[MAXMSG_WIDTH][MAXMSG_HEIGHT]; 15 16 int msgindex; 17 18 int counter; 19 WORD random_reg1; 20 21 int width, height; 22 23 } MATRIX_MESSAGE; 24 25 void SetMessageFont(HWND hwnd, TCHAR *szFontName, int nPointSize, BOOL fBold); 26 MATRIX_MESSAGE *InitMatrixMessage(HWND hwnd, int width, int height); 27 28 #ifdef __cplusplus 29 } 30 #endif 31 32 #endif 33