Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I monitor changes to the Clipboard contents (e.g. to enable/disable items on the Edit menu, depending on whether there is something to paste)?

0
Posted

How can I monitor changes to the Clipboard contents (e.g. to enable/disable items on the Edit menu, depending on whether there is something to paste)?

0

Import the SetClipboardViewer API function, and call it in your initialisation code, passing the handle of your form. The form will then receive WM_DRAWCLIPBOARD messages, which you can handle in WndProc.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123