www.pudn.com > commutil.zip > COMMAND.CPP


// ******************************************************************** // 
//                                                                      // 
//      COMMAND.CPP                                                     // 
//      Copyright (c) 1993, Michael Holmes and Bob Flanders             // 
//      C++ Communication Utilities                                     // 
//                                                                      // 
//      Chapter 7: Receiving a FAX                                      // 
//      Last changed in chapter 2                                       // 
//                                                                      // 
//      This file contains the functions which are under the            // 
//      Alt-Space entry in the main menu.                               // 
//                                                                      // 
// ******************************************************************** // 
 
 
/* ******************************************************************** * 
 * 
 *  about() -- display about box 
 * 
 * ******************************************************************** */ 
 
int     about(int c, int r)                 // column and row 
{ 
Window  about_win(c, r, c + 68, r + 5,      // define about window 
            menu_cn, menu_cr);              // ..using system colors 
 
 
_wscroll = 0;                               // disable scrolling 
about_win.Open(double_line);                // open window with a border 
about_win.Display(copyright);               // display part one of msg 
about_win.GotoXY(20, 4);                    // locate cursor for next part 
about_win.DisplayReverse(about_msg);        // ..then give part two 
 
while (NOT get_key(NO_ALT))                 // wait for a key 
    ;                                       // ..before closing down 
 
return(0);                                  // return to menu system 
 
} 
 
 
 
/* ******************************************************************** * 
 * 
 *  pc_exit() -- exit menu entry 
 * 
 * ******************************************************************** */ 
 
#pragma argsused                            // hold unused arg messages 
 
int     pc_exit(int c, int r)               // column and row 
{ 
 
quit_flag = 1;                              // set termination flag 
return(ESC);                                // return with an ESC to 
                                            // ..cause menu to return 
}