Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>openclipboard()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
OpenClipboard()
Get ownership of the clipboard
------------------------------------------------------------------------------

Syntax
OpenClipboard( <hWnd> )   -->   lSuccess

Arguments
<hWnd> is the handle to the window to become the clipboard
owner.

Returns
If successful, a logical TRUE (.T.) is returned, otherwise
FALSE (.F.) is returned (in which case the clipboard is
currently in use).

Description
This function attempts to open the Windows clipboard.  The
window will not actually become the owner unless/until it
calls the EmptyClipboard() function.

Example
if OpenClipboard( hWnd )
     EmptyClipboard()
     SetClipbData( CF_TEXT, "Some textual data or other" )
     CloseClipboard()
else
     MessageBox( , "Clipboard not available", "Info", MB_OK )
endif


See Also: CloseClipboard() EmptyClipboard() SetClipbData()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson