Reader small image

You're reading from  C++ Windows Programming

Product typeBook
Published inSep 2016
Reading LevelIntermediate
PublisherPackt
ISBN-139781786464224
Edition1st Edition
Languages
Right arrow
Author (1)
Stefan Björnander
Stefan Björnander
author image
Stefan Björnander

Stefan Björnander is the author of the books Microsoft Windows C++ and C++ Windows Programming. He holds a Master of Engineering and a Licentiate in Computer Science. He has worked as a software developer and as a teacher in computer science and mathematics for many years.
Read more about Stefan Björnander

Right arrow

The Clipboard class


The Clipboard class is an interface to the global Windows Clipboard, which makes it possible to cut, copy, and paste information between different kinds of applications. There are two forms of clipboard operations: ASCII and Unicode text and generic (application-specific) information.

Clipboard.h:

namespace SmallWindows { 

The formats for ASCII and Unicode lines are predefined.

  enum {AsciiFormat = CF_TEXT, UnicodeFormat = CF_UNICODETEXT}; 

Open and Close open and close the clipboard. They return true if they succeed. Clear clears the clipboard when it has been opened. More specifically, it removes any potential information with the specified format and Available returns true if there is information with the format stored on the clipboard.

Information in different formats may be stored on the clipboard. For instance, when the user copies text in an application, the text may be stored on the clipboard as ASCII and Unicode text, as well as a more advanced application...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
C++ Windows Programming
Published in: Sep 2016Publisher: PacktISBN-13: 9781786464224

Author (1)

author image
Stefan Björnander

Stefan Björnander is the author of the books Microsoft Windows C++ and C++ Windows Programming. He holds a Master of Engineering and a Licentiate in Computer Science. He has worked as a software developer and as a teacher in computer science and mathematics for many years.
Read more about Stefan Björnander