 |
| How to disable the Windows Clipboard (VFP9) |
User rating: 0/10 (0 votes) | |
|
|
 |
 |
Versions: click to open |
 |
|
 |
 |
| Before you begin: |
 |
Set the checkbox and the clipboard will be disabled for all running Windows applications.
This FoxPro form is set to be notified when anything is copied to the clipboard -- text, images etc. And it clears the clipboard content on each notification.
Neither timers nor ON KEY handlers are involved.
See also:
How to block the PrintScreen key
Preventing users from accessing the Windows Desktop and from switching to other applications
Capturing keyboard activity of another application using the Raw Input API
|
 |
 |
| |
| |
Members area. Log in to view this example. |
|
| |
|
|
|
|
|
 |
User rating: 0/10 (0 votes) | |
| 3412 bytes Created: 2005-05-31 18:26:41 Modified: 2011-01-08 08:00:28 Visits in 7 days: 158 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| My comment: |
 |
The Windows OS has a mechanism that allows to notify a window when the content of the clipboard changes.
Not just one window can be notified but many. They are organized in a chain. The first window in this chain receives a notification and passes it to the next one, so the notification goes down to the last window registered in this chain.
Any FoxPro window, the _screen or a form, can be registered as a Clipboard viewer -- this is how it is called. The notifications are actually window messages. And VFP9 handles window messages really good due to extended BINDEVENT() function.
WM_CHANGECBCHAIN -- this notification is sent after a registered window has been removed from the chain of clipboard viewers.
WM_DRAWCLIPBOARD -- this notification is sent after the content of the clipboard has changed.
|
 |
 |
| Word Index links for this example: |
 |
|
|
 |
 |
| Translate this page: |
 |
|