SaveClipboardFormat

#include "BiDIB.h"

 

BOOL CALLBACK SaveClipboardFormat( LPTSTR     lpszFileName,
HBITMAP hBitmap)

Description

Save Bitmap to clipboard file.

Parameters

LPTSTR

lpszFileName

File name

HBITMAP

hBitmap

Bitmap handle

Additional Information

This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.

Return values

Return a handle to the device dependent bitmap if successful or NULL if fails.

Programming notes

None.

Requirements

Header :     Declared in BiDIB.h; include BiDIB.h.

Library :    Use BiDIB.lib.

DLLs :       BiDIB.dll.

Code example

#include "BiDIB.h"

 

// save bitmap in formats

switch(nFormatID) {

                ...

                case  CLIPBOARD_FORMAT:

                                return SaveClipboardFormat(szFileName, hCurrentBitmap);

                                break;