COMMAND.CPP
资源名称:commutil.zip [点击查看]
上传用户:xr_qian
上传日期:2007-01-05
资源大小:443k
文件大小:2k
源码类别:
通讯/手机编程
开发平台:
DOS
- // ******************************************************************** //
- // //
- // 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
- }