Is there a quick way to clear the contents of the clipboard?

This is a discussion on Is there a quick way to clear the contents of the clipboard? within the C++ Programming forums, part of the General Programming Boards category; I've been searching msdn, but couldn't find an exact API call. Is there a quick and easy way to accomplish ...

  1. #1
    Welcome to the real world
    Join Date
    Feb 2004
    Posts
    50

    Is there a quick way to clear the contents of the clipboard?

    I've been searching msdn, but couldn't find an exact API call. Is there a quick and easy way to accomplish this?

    thanks

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Code:
    if (OpenClipboard(NULL))
    {
         EmptyClipboard();
         CloseClipboard();
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. codeform version 1.2.0 #2
    By dwks in forum A Brief History of Cprogramming.com
    Replies: 42
    Last Post: 04-18-2007, 01:10 PM
  2. Do you know...
    By davejigsaw in forum C++ Programming
    Replies: 1
    Last Post: 05-10-2005, 10:33 AM
  3. copying to clipboard
    By bballzone in forum Windows Programming
    Replies: 24
    Last Post: 09-30-2004, 03:24 PM
  4. just a quick clear screen question...
    By bobthefish3 in forum C Programming
    Replies: 6
    Last Post: 12-17-2001, 01:51 PM
  5. Why won't the file contents clear??
    By Brown Drake in forum C++ Programming
    Replies: 5
    Last Post: 11-21-2001, 01:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21