Click here to Skip to main content
11,712,454 members (75,151 online)
Click here to Skip to main content
Add your own
alternative version

Using the Clipboard, Part I : Transferring Simple Text

, 6 May 2002 340K 4.2K 160
In this first article of a four-part series on learning everything you ever wanted to know about programming the Windows Clipboard, you'll discover the basic steps of using the Clipboard API to transfer simple (ANSI) text to and from the Clipboard.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by SimpleTextTransfer.rc
//
#define IDR_MANIFEST                    1
#define ID_BTNCOPY                      3
#define ID_BTNCUT                       5
#define IDPASTE                         6
#define ID_BTNPASTE                     6
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_SIMPLETEXTTRANSFER_DIALOG   102
#define IDR_MAINFRAME                   128
#define ID_EDTTOCLIPBOARD               1000
#define ID_EDTFROMCLIPBOARD             1002
#define IDC_BUTTON1                     1003

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        129
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1005
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Tom Archer
Software Developer (Senior) Microsoft
United States United States
I'm a Senior Programming Writer in the Microsoft Windows Server organization where my focus is WMI, BITS, WinRM, and SMI-S.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150819.1 | Last Updated 7 May 2002
Article Copyright 2002 by Tom Archer
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid