Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable Clipboard function
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01011882
Message ID:
01014556
Views:
14
I don't have VFP9 around with its extended BINDEVENT(). Otherwise I would try to disable the clipboard using the SetClipboardViewer API call.

Step 1.
Pass the HWnd of a FoxPro form to the SetClipboardViewer. If successful, this form will receive notifications (WM_DRAWCLIPBOARD and WM_CHANGECBCHAIN messages) every time the content of the clipboard is changed.

Step 2.
Use BINDEVENT() to link WM_DRAWCLIPBOARD event to a method on your form. Inside this method, I think, the clipboard can be cleaned.

Again, I did not try this; that's just a guess.

* * *
Added some hours later: I tried to program this approach in C# and it worked. This way the Clipboard can be virtually disabled for all Windows applications.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform