Delphi 如何判断Clipboard剪切板中的内容的类型


本文整理自网络,侵删。

 如何判断剪切板中中的内容的类型,是image 是text 是wav 
Some   of   the   possible   values   of   the   Format   parameter   follow.   HasFormat   supports   additional   formats   provided   by   Windows   or   by   other   applications   as   well   as   custom   formats   registered   with   TPicture.RegisterCliPBoardFormat.  
   
Value Meaning  
   
CF_TEXT Text   wITh   a   CR-LF   combination   at   the   end   of   each   line.   A   null   character   identifies   the   end   of   the   text.  
CF_BITMAP A   Windows   bITmap   graphic.  
CF_METAFILEPICT A   Windows   metafile   graphic.  
CF_PICTURE An   object   of   type   TPicture.  
CF_COMPONENT Any   persistent   object.   
    

procedure   TForm1.Button1Click(Sender:   TObject);   
begin  
if   CliPBoard.HasFormat(CF_TEXT)   then  
      EdIT1.Text   :=   CliPBoard.AsText  

相关阅读 >>

Delphi xe5、6、7在android或者ios上使用ansistring和ansichar

Delphi 带密匙的字符串加密解密函数(支持中文)

Delphi-idhttp-utf-8编码乱码解决

Delphi 内存管理1

Delphi 获取当前进程的父进程

Delphi复制文件夹内所有文件

Delphi 怎么不注册 dll 就调用 com

Delphi adoquery filter使用

Delphi 一个中英文记录Delphi实现

Delphi实现md5算法

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...