blkboard.c - BLacK BOARD
This is a nice dual purpose program. It's main function is a udp
addressable display screen suitable for black-board message display
from another app (either machine local or lan wide). The secondary
function is being a nice example program for some of the capabilities
of the QS_WIN (Quote Screen Windows) routines.
Function
|
WinMain
|
Include file
|
BLKBOARD.H
|
Prototype
|
int WINAPI WinMain( HINSTANCE hInstance , HINSTANCE hPrevInstance ,
LPSTR lpCmdLine , int nCmdShow )
|
Remarks
|
This is the main program entry point for blkboard.c
|
Function
|
update_library_global_vars
|
Include file
|
BLKBOARD.H
|
Prototype
|
void update_library_global_vars( void )
|
Remarks
|
Update the TDF_lib global vars with data from the user's command line.
|
Function
|
print_usage_blkboard
|
Include file
|
BLKBOARD.H
|
Prototype
|
void print_usage_blkboard( void )
|
Remarks
|
Print a usage message for the user.
|
Function
|
process_cmd_line_4_arguments
|
Include file
|
BLKBOARD.H
|
Prototype
|
void process_cmd_line_4_arguments( void )
|
Remarks
|
Process the user's command line arguments into a argv array which then is
processed by the normal getargs() procedure to store the data into the
programs switch flags.
|
Function
|
localQSWndProc
|
Include file
|
BLKBOARD.H
|
Prototype
|
LONG WINAPI localQSWndProc(
HWND hWnd , UINT messg , UINT wParam , LONG lParam )
|
Remarks
|
This is the program local QSWndProc. It is used mainly to support
exiting from the app via the keyboard.
|
Function
|
udp_thread
|
Include file
|
BLKBOARD.H
|
Prototype
|
void udp_thread( PVOID pvoid )
|
Remarks
|
This thread supports the udp message port. It opens the listening port
and then hangs in a while( TRUE ) loop on a udp blocked read
processing incoming display message data.
|
Function
|
log_msg_to_scr
|
Include file
|
BLKBOARD.H
|
Prototype
|
void log_msg_to_scr( char *msg )
|
Remarks
|
This routine updates the debug message line of the screen display interface
list with the new message data.
|
Function
|
process_udp_msg
|
Include file
|
BLKBOARD.H
|
Prototype
|
void process_udp_msg( char *msg )
|
Remarks
|
This routine breaks up the incoming udp message into either screen display
data messages or active screen command messages.
msg - "DP1,R4,C7,X2,the actual msg
msg - "Data_msgPage_num,Row_num,Column_num,X(color)_num,the actual msg
|
Function
|
process_data_msg
|
Include file
|
BLKBOARD.H
|
Prototype
|
void process_data_msg( char *msg )
|
Remarks
|
This routine takes the screen display data messages, parses out the
page, row, column and color data from the data message. It then
updates the screen display interface list at the requested row & column
with the new message data. It also does a color flash it included in the
message.
|
Function
|
process_active_msg
|
Include file
|
BLKBOARD.H
|
Prototype
|
void process_active_msg( char *msg )
|
Remarks
|
This is a simple routine to process active screen control messages. Just
2 are currently supported. R - resets the page and X allows you to change
the default color for a qs_win field.
|
Function
|
str_2_buffer
|
Include file
|
BLKBOARD.H
|
Prototype
|
void str_2_buffer( char *dest , int col , char *src )
|
Remarks
|
Move a string to a given row and column in the display buffers.
|
Function
|
reset_page_1
|
Include file
|
BLKBOARD.H
|
Prototype
|
void reset_page_1( void )
|
Remarks
|
A simple reset page function.
|
Table of Contents
Function Index
generated on 22 September 1998 - 12:54:33
© 1998 Tierra del Fuego Ltd.
|