Laboratory/Develop

Tool for Viewing Drag and Drop and Clipboard Formats

theking 2008. 2. 19. 21:46
사용자 삽입 이미지

Introduction

With this tool, you can see what exchange formats that a given clipboard or drag&drop object suports just by dragging it from other application or copying it to the clipboard.

Under the Hood

For getting the ClipboardIDataObjectinterface, I used theClipboardclass from theSystem.Windows.Formsnamespace. The formats are retreived using the methodGetFormatsfrom theIDataObjectinterface.

The monitorization of Clipboard is handled with my component,ClipboardViewer. This component is using theSetClipboardViewerandChangeClipboardChainWin32 Clipboard functions.

Installing & Building

  1. Download and extract thesource codeof this article
  2. Run thebuild.batfile from command prompt
  3. Now run thebin\main.exeand enjoy!

Do you have any questions or comments? Contactme!

History

  • 6 Mar 2002
    • The classClipboardVieweris now in a separate file,Rgl.Components.CliboardViewer.cs, and in a different namespace,Rgl.Components
    • TheClipboardViewerclass now correctly creates itself on Win9X/ME
  • 14 Feb 2002
    • First version

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 foundhere

About the Author

Rui Lopes



Occupation:Web Developer
Location:
사용자 삽입 이미지
Portugal