diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2021-12-27 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2022-03-18 15:35:13 +0500 |
commit | f19f813537c7aea1c20749c914e756b54a9c3cf5 (patch) | |
tree | 816ba62ca7c0fa19f2eb46d9e9d6f7dd7c3a744d /CPP/Windows/Clipboard.h | |
parent | 98e06a519b63b81986abe76d28887f6984a7732b (diff) | |
download | 7zip-21.07.tar.gz 7zip-21.07.tar.bz2 7zip-21.07.zip |
'21.07'21.07
Diffstat (limited to 'CPP/Windows/Clipboard.h')
-rw-r--r-- | CPP/Windows/Clipboard.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/CPP/Windows/Clipboard.h b/CPP/Windows/Clipboard.h new file mode 100644 index 0000000..60fedc1 --- /dev/null +++ b/CPP/Windows/Clipboard.h | |||
@@ -0,0 +1,28 @@ | |||
1 | // Windows/Clipboard.h | ||
2 | |||
3 | #ifndef __CLIPBOARD_H | ||
4 | #define __CLIPBOARD_H | ||
5 | |||
6 | #include "../Common/MyString.h" | ||
7 | |||
8 | namespace NWindows { | ||
9 | |||
10 | class CClipboard | ||
11 | { | ||
12 | bool m_Open; | ||
13 | public: | ||
14 | CClipboard(): m_Open(false) {}; | ||
15 | ~CClipboard() { Close(); } | ||
16 | bool Open(HWND wndNewOwner) throw(); | ||
17 | bool Close() throw(); | ||
18 | }; | ||
19 | |||
20 | bool ClipboardIsFormatAvailableHDROP(); | ||
21 | |||
22 | // bool ClipboardGetFileNames(UStringVector &names); | ||
23 | // bool ClipboardGetTextString(AString &s); | ||
24 | bool ClipboardSetText(HWND owner, const UString &s); | ||
25 | |||
26 | } | ||
27 | |||
28 | #endif | ||