香港新浪網 MySinaBlog
Emily | 28th Jan 2009, 11:48 AM | General | (921 Reads)

測試 剪貼板上無內容

如果要判斷剪貼簿是否有資料可以使用 CountClipboardFormats API 函數
 

Declare Function CountClipboardFormats Lib "user32" () As Long

Function IsClipboardEmpty() As Boolean
If CountClipboardFormats = 0 Then
  IsClipboardEmpty = True
Else

  IsClipboardEmpty = False
End If
End Function

 

 (閱讀全文)