Directory Contents Search << >>


SHGImport

BOOL SHGImport(HWND hwParent, LPVOID SHGData, HGLOBAL FAR * lphDib, HMETAFILE FAR* lphMetaFile, LPMETAFILEHEADER lpMetaFileHeader, HGLOBAL FAR * lphSegInfo)

Does convert a Memory-Block that signifies an SHG-File into a DIB-Bitmap or Meatfile and Segmentation-Information in SEG-File Format. The segmented Hypergraphics in SEG-File format is documented in file SEG.H

Defined in: C:/HLPACCES/SHGIMPOR.C

Parameters

hwParent

Parent-Window for error Messages

SHGData

Input Data Block

lphDib

Pointer to a DIB-Handle variable. Should be Initialized by the application to NULL and will Contain a DIB-Handle on return if the SHG-File contained a DIB

lphMetaFile

Metafile-Handle for SHG containing WMF Initialized by the application to NULL and will Contain a HMETAFILE-Handle on return if the SHG-File contained a Metafile

lpMetaFileHeader

Will be filled with Informations on placeable Metafiles This member is used only if the SHG-File has been built based on a Metafile.

lphSegInfo

Segmentation Informations in format documented in SEG.H

Comments

Segmented Hypergraphic file can either be created based on a Bitmap (DIB) or on a Metafile. Both can be converted one into the other with some restrictions. This conversion code is not itself part of Help Access Library and can be found in our DaVinci package. Be aware that many Metafiles are just wrappers around Bitmaps and using PlayMetafile to transfer these into a Bitmap is NOT the best method of handling.

See Also

SHGExport

Return Codes

TRUE

On Successfull Execution

FALSE

On Errors

logo