6 #ifndef _INC_cClipboard_H
7 #define _INC_cClipboard_H
12 #include "../GrayLibBase.h"
25 bool m_bOpenClipboard;
30 cClipboard(HWND hWnd) noexcept
31 : m_bOpenClipboard(::OpenClipboard(hWnd))
41 bool isOpenClipboard() const noexcept
43 return m_bOpenClipboard;
46 void CloseClipboard() noexcept
51 m_bOpenClipboard =
false;
55 static bool GRAYCALL IsClipboardDataAvail(HWND hWnd, UINT uFormat = CF_TEXT);
58 bool AddClipboardData(
const void* pData,
size_t nLen, UINT uFormat);
59 static bool GRAYCALL SetClipboardData(HWND hWnd,
const void* pData,
size_t nLen, UINT uFormat = CF_TEXT);
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32
cStringT< GChar_t > cString
Definition: cString.h:636
static const StrLen_t k_LEN_MAX
arbitrary max size for Format() etc. NOTE: _MSC_VER says stack frame should be at least 16384
Definition: StrT.h:75