|
|
Microsoft OS/2 SDK PM 08-08-1988
/* -----------------------------------------------------------------*\ /* VIO File Browser Demo Headers /* Version 1.0 /* Created by Microsoft Corp. 1988 /* -----------------------------------------------------------------*/ #define WINDOW 0 /* ------------------------------------ */ /* forward declarations */ /* ------------------------------------ */ /* -- top-level */ void cdecl main( int, char *[] ); SHORT Initialize( int, char *[]); SHORT ReadFile( void ); void ManipulateFile( void ); /* -- line-level */ SHORT StoreLine( char * ); SHORT RetrieveLine( char ** , USHORT ); /* -- screen */ void DisplayScreen( USHORT TopLine, BOOL force); void ClearScreen( void ); void VidRefresh ( USHORT LineFrom, USHORT NumLines, USHORT VidRowStart); void ScrollDown(int Nlines); void ScrollUp(int Nlines); VOID ExecuteAction( CHAR ch); /* -- user input */ VOID UserLoop( VOID ); UCHAR GetScanCode( void ); CHAR GetKbdInput( void ); /* ------------------------------------ */ /* constant definitions */ /* ------------------------------------ */ #define NUM_DATA_LINES 4096 #define HIGHEST_HSCROLL 128 #define HSCROLL_PAGESIZE 8 /* -- action codes */ /* -- not all are implemented yet */ #define EXIT 10 #define LINE_UP 11 #define LINE_DOWN 12 #define PAGE_UP 13 #define PAGE_DOWN 14 #define CHAR_RIGHT 15 #define CHAR_LEFT 16 #define PAGE_RIGHT 17 #define PAGE_LEFT 18 #define GOTO_TOP 19 #define GOTO_BOTTOM 20 #define GOTO_LINE 21 #define GOTO_HSCROLL 22 #define MAX_START_LINE (HighestLine-Vid_Rows+1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.