LoadClipboardFormat

#include "BiDIB.h"

 

HBITMAP CALLBACK LoadClipboardFormat( LPTSTR lpszFileName,
UINT    nFormat)

Description

Loads the clipboard file into device dependent bitmap.

Parameters

LPTSTR

lpszFileName

CLP file name.

UINT

nFormat

Clipboard format.

 

 

FORMAT  CONTENTS

 

 

CF_DIB

Device independent bitmap

 

 

CF_BITMAP

Device dependent bitmap

 

 

CF_TEXT

NULL terminated text file.

 

 

CF_METAFILEPICT

Metafile picture.

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

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"

switch(nFormatID) {

                ...

                case  CLIPBOARD_FORMAT:  // Load clipboard format file into bitmap

                                CurrentBitmap = LoadClipboardFormat(szFileName, CF_BITMAP);

                                break;