barrier/synergy/CMSWindowsClipboard.h

32 lines
724 B
C
Raw Normal View History

#ifndef CMSWINDOWSCLIPBOARD_H
#define CMSWINDOWSCLIPBOARD_H
#include "IClipboard.h"
#include <windows.h>
class CMSWindowsClipboard : public IClipboard {
2002-04-29 14:40:01 +00:00
public:
CMSWindowsClipboard(HWND window);
virtual ~CMSWindowsClipboard();
// IClipboard overrides
virtual bool empty();
virtual void add(EFormat, const CString& data);
virtual bool open(Time) const;
virtual void close() const;
virtual Time getTime() const;
virtual bool has(EFormat) const;
virtual CString get(EFormat) const;
2002-04-29 14:40:01 +00:00
private:
UINT convertFormatToWin32(EFormat) const;
HANDLE convertTextToWin32(const CString& data) const;
CString convertTextFromWin32(HANDLE) const;
2002-04-29 14:40:01 +00:00
private:
HWND m_window;
mutable Time m_time;
};
#endif