Hi,
I want to know how to implement copy and paste function by using windows API. Can someone tell me which functions in API should I use?
Many thanks!
Printable View
Hi,
I want to know how to implement copy and paste function by using windows API. Can someone tell me which functions in API should I use?
Many thanks!
Here is what you probably need:
Code:Private Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long)
As Long
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function SetClipboardData Lib "user32" (ByVal wFormat As
Long, ByVal hMem As Long) As Long
Private Declare Function EmptyClipboard Lib "user32" () As Long
Private Declare Function GetClipboardData Lib "user32" (ByVal wFormat As Long) As Long