home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / template.zip / EDIT.C < prev    next >
C/C++ Source or Header  |  1998-04-20  |  5KB  |  174 lines

  1. /**************************************************************************
  2.  *  File name  :  edit.c
  3.  *
  4.  *  Description:  This module reserves paths for code for the WM_COMMAND
  5.  *                messages posted by the standard edit menu.
  6.  *
  7.  *                This source file contains the following functions:
  8.  *
  9.  *                EditUndo(mp2)
  10.  *                EditCut(mp2)
  11.  *                EditCopy(mp2)
  12.  *                EditPaste(mp2)
  13.  *                EditClear(mp2)
  14.  *
  15.  *  Concepts   :  clipboard
  16.  *
  17.  *  API's      :  [none]
  18.  *
  19.  *  Required
  20.  *    Files    :  OS2.H, MAIN.H, XTRN.H
  21.  *
  22.  *  Copyright (C) 1991 IBM Corporation
  23.  *
  24.  *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  25.  *      sample code created by IBM Corporation. This sample code is not
  26.  *      part of any standard or IBM product and is provided to you solely
  27.  *      for  the purpose of assisting you in the development of your
  28.  *      applications.  The code is provided "AS IS", without
  29.  *      warranty of any kind.  IBM shall not be liable for any damages
  30.  *      arising out of your use of the sample code, even if they have been
  31.  *      advised of the possibility of such damages.                                                    *
  32.  *************************************************************************/
  33. /*
  34.  *  Include files, macros, defined constants, and externs
  35.  */
  36.  
  37. #include <os2.h>
  38. #include "main.h"
  39. #include "xtrn.h"
  40.  
  41. /*
  42.  *  Global variables
  43.  */
  44.  
  45. /*
  46.  *  Entry point declarations
  47.  */
  48.  
  49. /**************************************************************************
  50.  *
  51.  *  Name       : EditUndo(mp2)
  52.  *
  53.  *  Description: Processes selection of the Undo choice of the Edit
  54.  *               pulldown
  55.  *
  56.  *  Concepts:  called whenever Undo from the Edit menu is selected
  57.  *
  58.  *  API's      :  [none]
  59.  *
  60.  *  Parameters :  mp2      = second message parameter
  61.  *
  62.  *  Return     :  [none]
  63.  *
  64.  *************************************************************************/
  65. VOID EditUndo(MPARAM mp2)
  66. {
  67.     /* This routine currently doesn't use the mp2 parameter but
  68.      *  it is referenced here to prevent an 'Unreferenced Parameter'
  69.      *  warning at compile time.
  70.      */
  71.     mp2;
  72. }   /* End of EditUndo   */
  73.  
  74. /**************************************************************************
  75.  *
  76.  *  Name       : EditCut(mp2)
  77.  *
  78.  *  Description: Processes selection of the Cut choice of the Edit
  79.  *               pulldown
  80.  *
  81.  *  Concepts:  called whenever Cut from the Edit menu is selected
  82.  *
  83.  *  API's      :  [none]
  84.  *
  85.  *  Parameters :  mp2      = second message parameter
  86.  *
  87.  *  Return     :  [none]
  88.  *
  89.  *************************************************************************/
  90. VOID EditCut(MPARAM mp2)
  91. {
  92.     /* This routine currently doesn't use the mp2 parameter but
  93.      *  it is referenced here to prevent an 'Unreferenced Parameter'
  94.      *  warning at compile time.
  95.      */
  96.     mp2;
  97. }   /* End of EditCut   */
  98.  
  99. /**************************************************************************
  100.  *
  101.  *  Name       : EditCopy(mp2)
  102.  *
  103.  *  Description: Processes selection of the Copy choice of the Edit
  104.  *               pulldown
  105.  *
  106.  *  Concepts:  called whenever Copy from the Edit menu is selected
  107.  *
  108.  *  API's      :  [none]
  109.  *
  110.  *  Parameters :  mp2      = second message parameter
  111.  *
  112.  *  Return     :  [none]
  113.  *
  114.  *************************************************************************/
  115. VOID EditCopy(MPARAM mp2)
  116. {
  117.     /* This routine currently doesn't use the mp2 parameter but
  118.      *  it is referenced here to prevent an 'Unreferenced Parameter'
  119.      *  warning at compile time.
  120.      */
  121.     mp2;
  122. }   /* End of EditCopy   */
  123.  
  124. /**************************************************************************
  125.  *
  126.  *  Name       : EditPaste(mp2)
  127.  *
  128.  *  Description: Processes selection of the Paste choice of the Edit
  129.  *               pulldown
  130.  *
  131.  *  Concepts:  called whenever Paste from the Edit menu is selected
  132.  *
  133.  *  API's      :  [none]
  134.  *
  135.  *  Parameters :  mp2      = second message parameter
  136.  *
  137.  *  Return     :  [none]
  138.  *
  139.  *************************************************************************/
  140. VOID EditPaste(MPARAM mp2)
  141. {
  142.     /* This routine currently doesn't use the mp2 parameter but
  143.      *  it is referenced here to prevent an 'Unreferenced Parameter'
  144.      *  warning at compile time.
  145.      */
  146.     mp2;
  147. }   /* End of EditPaste    */
  148.  
  149. /**************************************************************************
  150.  *
  151.  *  Name       : EditClear(mp2)
  152.  *
  153.  *  Description: Processes selection of the Clear choice of the Edit
  154.  *               pulldown
  155.  *
  156.  *  Concepts:  called whenever Clear from the Edit menu is selected
  157.  *
  158.  *  API's      :  [none]
  159.  *
  160.  *  Parameters :  mp2      = second message parameter
  161.  *
  162.  *  Return     :  [none]
  163.  *
  164.  *************************************************************************/
  165. VOID EditClear(MPARAM mp2)
  166. {
  167.     /* This routine currently doesn't use the mp2 parameter but
  168.      *  it is referenced here to prevent an 'Unreferenced Parameter'
  169.      *  warning at compile time.
  170.      */
  171.     mp2;
  172. }   /* End of EditClear   */
  173. /***************************  End of edit.c  ****************************/
  174.