Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfwinclpclose()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfWinClpClose()
Close the Windows clipboard
------------------------------------------------------------------------------
Syntax:

     dfWinClpClose() --> lWin

Parameters:

     NONE

Returns:

     <lWin>  If .T. the clipboard has been closed

Description:

     Close the Windows clipboard
     
     NB This function works only in a Task Windows in a protected mode
     application

Example:

     #include "Common.ch"
     #include "dfWindow.ch"
     
     * ####################################################
     FUNCTION Main()
     * ####################################################
     
     IF dfIsWin() // Is in Windows Task
        dfWinFullScr()  // Set to full screen
     
        ? "Windows Version ", dfWinVer()
     
        IF dfIsWinClp()
           ? "Clipboard Supported"
           ? "Clipboard Version : " , dfWinClpVer()
     
           dfWinClpOpen()  // Open Clipboard
           ? "Clipboard Size    : " , dfWinClpSize()
           ? "Clipboard Get     : " , dfWinClpGet()
     
           ? "Empty Clipboard"
           dfWinClpEmpty() // Empty the old value
           ? "Clipboard Size    : " , dfWinClpSize()
           ? "Clipboard Get     : " , dfWinClpGet()
     
           ? "Clipboard Set     : This text is put "+;
                                  "in Windows"
           dfWinClpSet("This text is put in Windows")
     
           ? "Clipboard Size    : " , dfWinClpSize()
           ? "Clipboard Get     : " , dfWinClpGet()
     
           dfWinClpClose() // Close ClipBoard
        ENDIF
     ENDIF
     
     RETURN NIL

See also:

     dfIswin()

See Also: dfIswin()

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