grx_test.c -
This is a simple testbed that I used to first develop the graphic
window routines. I have included it as a sample program since it shows
examples of a number of low level calls into the G_WIN subsystem and
direct window handling. High level examples can be found in SNAPSHOT.C.
This is NOT a finished or polished app (but just a QND hack :-)
Function
|
pack
|
Include file
|
GRX_TEST.H
|
Prototype
|
#pragma pack( 4 )
|
Remarks
|
|
Function
|
WinMain
|
Include file
|
GRX_TEST.H
|
Prototype
|
int PASCAL WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpszCmdLine, int nCmdShow )
|
Remarks
|
Main entry.
|
Function
|
process_cmd_line_4_arguments
|
Include file
|
GRX_TEST.H
|
Prototype
|
void process_cmd_line_4_arguments( LPSTR lpCmdLine )
|
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
|
localGWndProc
|
Include file
|
GRX_TEST.H
|
Prototype
|
LONG WINAPI localGWndProc(
HWND hWnd , UINT messg , UINT wParam , LONG lParam )
|
Remarks
|
This is the local G_WIN WinProc. It just handles keyboard input to
honor exit requests.
|
Function
|
test_routine1
|
Include file
|
GRX_TEST.H
|
Prototype
|
void test_routine1( G_WIN *w_ptr )
|
Remarks
|
|
Function
|
control_c_handler
|
Include file
|
GRX_TEST.H
|
Prototype
|
BOOL WINAPI control_c_handler( DWORD dwCtrlType )
|
Remarks
|
A simple windows control-c catcher. It currently doesn't do much -
just signal the event out the DB msg port.
|
Function
|
calc_cycle_position
|
Include file
|
GRX_TEST.H
|
Prototype
|
float calc_cycle_position( int cycle_length , int cur_offset )
|
Remarks
|
Calculate the current position in a cycle, return x where 1 >= x >= -1
with 1 = top of the cycle & -1 = bottom of the cycle.
|
Table of Contents
Function Index
generated on 22 September 1998 - 12:54:58
© 1998 Tierra del Fuego Ltd.
|