TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Attributes | List of all members
Clipboard Class Reference

Detailed Description

Clipboard wrapper.

See also
ClipboardViewer

Public Member Functions

 Clipboard (bool bOpen=true)
 Constructor, optionally opens the clipboard. More...
 
virtual ~Clipboard ()
 
bool OpenClipboard ()
 Opens the clipboard. More...
 
bool CloseClipboard ()
 
void EmptyClipboard ()
 
int GetPriorityClipboardFormat () const
 
SIZE_T GetClipboardDataSize ()
 
bool ClipboardDataReadLock (HANDLE &hClipData, LPVOID &pLock, SIZE_T &iDataSize, int &iClipFormat)
 
bool ClipboardDataReadUnlock (HANDLE &hClipData)
 
bool GetClipboardData (PVOID pBuffer, SIZE_T &iBufLen)
 
BOOL SetClipboardData (INT Type, LPVOID pBuffer, SIZE_T iBufLen)
 
bool SetClipboardText (const ni::cchar *aaszText, int len=-1)
 
bool SetClipboardText (const ni::uchar *aaszText, int len=-1)
 
bool GetClipboardText (ni::cString &astrOut)
 

Protected Attributes

bool m_bClipOpened
 

Constructor & Destructor Documentation

Clipboard ( bool  bOpen = true)

Constructor, optionally opens the clipboard.

Parameters
bOpenIf true, clipboard is automatically opened
virtual ~Clipboard ( )
virtual

Member Function Documentation

bool OpenClipboard ( )

Opens the clipboard.

Returns
true in case of success
See also
CloseClipboard()
bool CloseClipboard ( )
void EmptyClipboard ( )
int GetPriorityClipboardFormat ( ) const
SIZE_T GetClipboardDataSize ( )
bool ClipboardDataReadLock ( HANDLE &  hClipData,
LPVOID &  pLock,
SIZE_T &  iDataSize,
int &  iClipFormat 
)
bool ClipboardDataReadUnlock ( HANDLE &  hClipData)
bool GetClipboardData ( PVOID  pBuffer,
SIZE_T &  iBufLen 
)
BOOL SetClipboardData ( INT  Type,
LPVOID  pBuffer,
SIZE_T  iBufLen 
)
bool SetClipboardText ( const ni::cchar aaszText,
int  len = -1 
)
bool SetClipboardText ( const ni::uchar aaszText,
int  len = -1 
)
bool GetClipboardText ( ni::cString astrOut)

Member Data Documentation

bool m_bClipOpened
protected