|
|
1.1 root 1: /*==============================================================*\
2: * Edit.c - routines for handling the standard edit menu
3: * commands.
4: * Created 1989, 1990 Microsoft Corp.
5: *--------------------------------------------------------------
6: *
7: * This module contains the code for the WM_COMMAND messages
8: * posted by the standard edit menu.
9: *
10: *--------------------------------------------------------------
11: *
12: * This source file contains the following functions:
13: *
14: * EditUndo(mp2);
15: * EditCut(mp2);
16: * EditCopy(mp2);
17: * EditPaste(mp2);
18: * EditClear(mp2);
19: *
20: \*==============================================================*/
21:
22: /*--------------------------------------------------------------*\
23: * Include files, macros, defined constants, and externs
24: \*--------------------------------------------------------------*/
25:
26: #include <os2.h>
27: #include "main.h"
28: #include "xtrn.h"
29:
30: /*--------------------------------------------------------------*\
31: * Global variables
32: \*--------------------------------------------------------------*/
33:
34: /*--------------------------------------------------------------*\
35: * Entry point declarations
36: \*--------------------------------------------------------------*/
37:
38:
39: /****************************************************************\
40: * Undo routine
41: *--------------------------------------------------------------
42: *
43: * Name: EditUndo(mp2)
44: *
45: * Purpose: Processes the Edit menu's Undo item.
46: *
47: * Usage: called whenever Undo from the Edit menu is selected
48: *
49: * Method:
50: *
51: * Returns:
52: *
53: \****************************************************************/
54: VOID EditUndo(mp2)
55: MPARAM mp2; /* second parameter of WM_COMMAND message sent by menu */
56: {
57:
58:
59: /* This routine currently doesn't use the mp2 parameter but *\
60: * it is referenced here to prevent an 'Unreferenced Parameter'
61: \* warning at compile time. */
62: mp2;
63:
64: } /* EditUndo() */
65:
66: /****************************************************************\
67: * Cut routine
68: *--------------------------------------------------------------
69: *
70: * Name: EditCut(mp2)
71: *
72: * Purpose: Processes the Edit menu's Cut item.
73: *
74: * Usage: called whenever Cut from the Edit menu is selected
75: *
76: * Method:
77: *
78: * Returns:
79: *
80: \****************************************************************/
81: VOID EditCut(mp2)
82: MPARAM mp2; /* second parameter of WM_COMMAND message sent by menu */
83: {
84:
85:
86: /* This routine currently doesn't use the mp2 parameter but *\
87: * it is referenced here to prevent an 'Unreferenced Parameter'
88: \* warning at compile time. */
89: mp2;
90:
91: } /* EditCut() */
92:
93: /****************************************************************\
94: * Copy routine
95: *--------------------------------------------------------------
96: *
97: * Name: EditCopy(mp2)
98: *
99: * Purpose: Processes the Edit menu's Copy item.
100: *
101: * Usage: called whenever Copy from the Edit menu is selected
102: *
103: * Method:
104: *
105: * Returns:
106: *
107: \****************************************************************/
108: VOID EditCopy(mp2)
109: MPARAM mp2; /* second parameter of WM_COMMAND message sent by menu */
110: {
111:
112:
113: /* This routine currently doesn't use the mp2 parameter but *\
114: * it is referenced here to prevent an 'Unreferenced Parameter'
115: \* warning at compile time. */
116: mp2;
117:
118: } /* EditCopy() */
119:
120: /****************************************************************\
121: * Paste routine
122: *--------------------------------------------------------------
123: *
124: * Name: EditPaste(mp2)
125: *
126: * Purpose: Processes the Edit menu's Paste item.
127: *
128: * Usage: called whenever Paste from the Edit menu is
129: * selected
130: *
131: * Method:
132: *
133: * Returns:
134: *
135: \****************************************************************/
136: VOID EditPaste(mp2)
137: MPARAM mp2; /* second parameter of WM_COMMAND message sent by menu */
138: {
139:
140:
141: /* This routine currently doesn't use the mp2 parameter but *\
142: * it is referenced here to prevent an 'Unreferenced Parameter'
143: \* warning at compile time. */
144: mp2;
145:
146: } /* EditPaste() */
147:
148: /****************************************************************\
149: * Clear routine
150: *--------------------------------------------------------------
151: *
152: * Name: EditClear(mp2)
153: *
154: * Purpose: Processes the Edit menu's Clear item.
155: *
156: * Usage: called whenever Clear from the Edit menu is
157: * selected
158: *
159: * Method:
160: *
161: * Returns:
162: *
163: \****************************************************************/
164: VOID EditClear(mp2)
165: MPARAM mp2; /* second parameter of WM_COMMAND message sent by menu */
166: {
167:
168:
169: /* This routine currently doesn't use the mp2 parameter but *\
170: * it is referenced here to prevent an 'Unreferenced Parameter'
171: \* warning at compile time. */
172: mp2;
173:
174: } /* EditClear() */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.