File:  [OS/2 SDKs] / pmsdk / samples / newcard / cfclip.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:28:12 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: pmsdk-1988, HEAD
Microsoft OS/2 SDK PM 08-08-1988

#include "cardfile.h"

/*********************************************************************/
/*  Windows/PM Cardfile Shared Code                                  */
/*                                                                   */
/*  (c) Copyright Microsoft Corp. 1987,1988 - All Rights Reserved    */
/*********************************************************************/

/*********************************************************************/
/*    The following shared code was developed from the original      */
/* Cardfile application.  This code can be compiled to run under     */
/* either the Windows or the PM manager environment.  All            */
/* functionality associated with bitmaps or printing has been        */
/* deleted.  Some comments refering to these functions may still be  */
/* present in the code and should be disregarded. jw.                */
/*********************************************************************/

/*********************************************************************/
/* DoCutCopy - 
/*    this routine handles the cut and copy commands, putting the
/* appropriate information out in the clipboard.
/*
/*    Same for PM and Windows                                        */
/*********************************************************************/

void FAR DoCutCopy(event)
int event;
    {
    /* just tell edit control to do it */
    SendMessage(hCardWnd, event == IDM_CUT ? WM_CUT : WM_COPY, 0, 0L);
    }

/*********************************************************************/
/* DoPaste -                                                         */
/*    This handles pasting                                           */
/*                                                                   */
/*    Same for PM and Windows                                        */
/*********************************************************************/


void FAR DoPaste()
    {
    /* if in text mode, let edit control handle it */
    if (!SendMessage(hCardWnd, WM_PASTE, 0, 0L))
        CardfileOkError(IDS_ECLIPEMPTYTEXT);
    }




unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.