ClipX – Software Development Kit

ClipXClipboardMonitor Service

Header: #include <ClipXClipboardMonitor.h>
Ancestor: ClipXClipboardMonitor

Member Events:

virtual int onNewTextClipboard(const char *text);

This callback function is called when the user has copied a new text clipboard, and before ClipX has recorded it.

const char *text

A pointer to the string that was copied (encoding is UTF8).

return value (int):

Return 0 to ignore that clipboard, or 1 to let ClipX record it into the history.

virtual int onNewBitmapClipboard(HBITMAP bmp);

This callback function is one of the two functions that may be called when the user has copied a new bitmap clipboard, and before ClipX has recorded it.

HBITMAP bmp

A handle to the bitmap.

return value (int):

Return 0 to ignore that clipboard, or 1 to let ClipX record it into the history.

virtual int onNewDIBitmapClipboard(BITMAPINFO *bi);

This callback function is one of the two functions that may be called when the user has copied a new bitmap clipboard, and before ClipX has recorded it.

BITMAPINFO *bi

A pointer to a packed DIB.

return value (int):

Return 0 to ignore that clipboard, or 1 to let ClipX record it into the history.

virtual int onNewFileListClipboard(HDROP filelist);

This callback function is called when the use has copied one or more files in Windows Explorer, and before ClipX has recorded it.

HDROP filelist

A file list HDROP handle, use QueryQueryFile to retrieve the files.

return value (int):

Return 0 to ignore that clipboard, or 1 to let ClipX record it into the history.

Back to documentation index