|
|
1.1 root 1: #include "cardfile.h"
2:
3: /*********************************************************************/
4: /* Windows/PM Cardfile Shared Code */
5: /* */
6: /* (c) Copyright Microsoft Corp. 1987,1988 - All Rights Reserved */
7: /*********************************************************************/
8:
9: /*********************************************************************/
10: /* The following shared code was developed from the original */
11: /* Cardfile application. This code can be compiled to run under */
12: /* either the Windows or the PM manager environment. All */
13: /* functionality associated with bitmaps or printing has been */
14: /* deleted. Some comments refering to these functions may still be */
15: /* present in the code and should be disregarded. jw. */
16: /*********************************************************************/
17:
18: /*********************************************************************/
19: /* DoCutCopy -
20: /* this routine handles the cut and copy commands, putting the
21: /* appropriate information out in the clipboard.
22: /*
23: /* Same for PM and Windows */
24: /*********************************************************************/
25:
26: void FAR DoCutCopy(event)
27: int event;
28: {
29: /* just tell edit control to do it */
30: SendMessage(hCardWnd, event == IDM_CUT ? WM_CUT : WM_COPY, 0, 0L);
31: }
32:
33: /*********************************************************************/
34: /* DoPaste - */
35: /* This handles pasting */
36: /* */
37: /* Same for PM and Windows */
38: /*********************************************************************/
39:
40:
41: void FAR DoPaste()
42: {
43: /* if in text mode, let edit control handle it */
44: if (!SendMessage(hCardWnd, WM_PASTE, 0, 0L))
45: CardfileOkError(IDS_ECLIPEMPTYTEXT);
46: }
47:
48:
49:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.