Env: WindowsXP, VC++6.00

I wonder how to know if the data on the Clipboard is changed.


TIA
ou

Re: Clipboard by William

William
Sun Dec 09 16:55:36 PST 2007

"ou" <ou07@ab.auone-net.jp> wrote in message
news:e1jYlRsOIHA.2308@TK2MSFTNGP05.phx.gbl...
> I wonder how to know if the data on the Clipboard is changed.

Call SetClipboardViewer()

http://msdn2.microsoft.com/en-us/library/ms649052.aspx

to add one of your windows to the clipboard viewer chain. It will get
notified with a WM_DRAWCLIPBOARD message whenever the clipboard changes. It
MUST respond to WM_CHANGECNCHAIN to keep the chain up to date.

Regards,
Will