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>dfwinclpsize()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfWinClpSize()
Get the size of the Clipboard of Windows
------------------------------------------------------------------------------
Syntax:

     dfWinClpSize( [<nType>] ) --> nBuffer

Parameters:

     <nType>    Type of Clipboard
     #include "dfWindow.ch"
     +----------------------+
     | Tipo                 |
     |----------------------|
     | WIN_CLP_DATA_TEXT    | // text             DEFAULT
     | WIN_CLP_DATA_BMP     | // bitmap
     | WIN_CLP_DATA_META    | // metafile picture
     | WIN_CLP_DATA_SYLK    | // SYLK
     | WIN_CLP_DATA_DIF     | // DIF
     | WIN_CLP_DATA_TIFF    | // TIFF
     | WIN_CLP_DATA_OEMTEXT | // OEM text
     | WIN_CLP_DATA_DIBBMP  | // DIB bitmap
     | WIN_CLP_DATA_SPECIAL | // special format
     | WIN_CLP_DATA_DSPTEXT | // DSP text
     | WIN_CLP_DATA_DSPBMP  | // DSP bitmap
     +----------------------+

Returns:

     <nBuffer>  Size of Clipboard

Description:

     Get the size of the Clipboard of Windows
     
     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