2001-11-19 03:33:36 +03:00
|
|
|
#ifndef CMSWINDOWSCLIPBOARD_H
|
|
|
|
#define CMSWINDOWSCLIPBOARD_H
|
|
|
|
|
|
|
|
#include "IClipboard.h"
|
2001-11-25 21:32:41 +03:00
|
|
|
#include <windows.h>
|
2001-11-19 03:33:36 +03:00
|
|
|
|
|
|
|
class CMSWindowsClipboard : public IClipboard {
|
|
|
|
public:
|
2001-11-25 21:32:41 +03:00
|
|
|
CMSWindowsClipboard(HWND window);
|
2001-11-19 03:33:36 +03:00
|
|
|
virtual ~CMSWindowsClipboard();
|
|
|
|
|
|
|
|
// IClipboard overrides
|
2001-11-25 21:32:41 +03:00
|
|
|
virtual bool open();
|
2001-11-19 03:33:36 +03:00
|
|
|
virtual void close();
|
|
|
|
virtual void add(EFormat, const CString& data);
|
|
|
|
virtual bool has(EFormat) const;
|
|
|
|
virtual CString get(EFormat) const;
|
2001-11-25 21:32:41 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
UINT convertFormatToWin32(EFormat) const;
|
|
|
|
HANDLE convertTextToWin32(const CString& data) const;
|
|
|
|
CString convertTextFromWin32(HANDLE) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
HWND m_window;
|
2001-11-19 03:33:36 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|