Spread 8.0 Documentation
SSLoadResPicture Function
Support Options
DLL Reference > DLL Functions > SSLoadResPicture Function

Glossary Item Box

SSLoadResPicture Function


See Also    ActiveX    Example

Applies To

fpSpread DLL control

Description

Loads a picture from a resource.

Syntax

C

HANDLE SSLoadResPicture(HINSTANCE hInstance, LPCTSTR lpszResName, LPCTSTR lpszResType, short nPictType);

C++

HANDLE TSpread::LoadResPicture(HINSTANCE hInstance, LPCTSTR lpszResName, LPCTSTR lpszResType, short nPictType);

Parameters

The following parameters are available:

Parameter Description
hInstance Instance handle for the EXE or DLL containing the resource
lpszResName Name of the resource, or a string starting with "#" and followed by the numeric identifier for the resource (for example, "BEANY", "#102")
lpszResType Name of the section in the resource file containing the resource, or a string starting with "#" and followed by the numeric identifier for the section (for example, "BITMAP", or "#2" for bitmap, or "#3" for icon)
nPictType Graphic type of file to load
Can be one of the following:
Constant Value Description
SS_PICTURE_TYPE_UNKNOWN 0 The type is not known. The control tries to load the picture using each of the following types, if possible.
SS_PICTURE_TYPE_BMP 1 Windows Bitmap graphic
SS_PICTURE_TYPE_GIF 2 Graphics Interchange Format graphic
SS_PICTURE_TYPE_JPEG 3 Joint Photographic Experts Group graphic
SS_PICTURE_TYPE_PNG 4 Portable Network Graphic graphic
SS_PICTURE_TYPE_ICO 5 Windows Icon graphic
SS_PICTURE_TYPE_TIFF 6 Tagged Image File Format graphic
SS_PICTURE_TYPE_TGA 7 Truevision Targa graphic
SS_PICTURE_TYPE_PCX 8 Paintbrush graphics file graphic
SS_PICTURE_TYPE_WBMP 9 Wireless Bitmap Format graphic
SS_PICTURE_TYPE_WMF 10 Windows Meta File graphic (also loads enhanced metafiles (EMF))
SS_PICTURE_TYPE_JP2 11 JPEG 2000 graphic
SS_PICTURE_TYPE_JPC 12 JPEG 2000 graphic

Remarks

Call this function to load a picture from a resource.

If you use this function with a picture cell type and there are multiple sheets, call the SSSetSheet function to specify the sheet for which you are calling this function.

Return Value

Handle to a picture in bitmap format

See Also

Creating Picture Cells

SSLoadPicture, SSLoadPictureBuffer, SSSavePicture, SSSavePictureBuffer, SSSetSheet functions

ActiveX Correspondence

LoadResPicture method

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.