L_DispContainerPrintCell

#include "l_bitmap.h"

L_LTIVW_API HBITMAP EXT_FUNCTION L_DispContainerPrintCell(hCon, nCellIndex, uFlags)

HDISPCONTAINER hCon;

/* handle to the container */

L_INT nCellIndex;

/* index of the cell */

L_UINT uFlags;

/* reserved for future */

Returns windows bitmap; HBITMAP that contains a printable version of the specified cell or sub-cell.

Parameter

Description

hCon

Handle to the Container.

nCellIndex

A zero-based index of the cell for which to print. Pass -2 to print the selected cell.

uFlags

Reserved for future use. Pass 0.

Returns

>0

HBITMAP.

0

An error occurred. Refer to Return Codes.

Comments

Once the HBITMAP is no longer needed, you should delete it using the windows function DeleteObject.

Required DLLs and Libraries

LTIVW
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_DispContainerCreate, L_DispContainerRemoveCell, L_DispContainerInsertCell, L_DispContainerGetCellCount, L_DispContainerGetWindowHandle, L_DispContainerSetCellBitmapList, L_DispContainerSetCellTag, L_DispContainerGetCellProperties, L_DispContainerGetCellPosition, L_DispContainerRepositionCell, L_DispContainerGetCellBitmapList, L_DispContainerGetCellBounds, L_DispContainerFreezeCell, L_DispContainerSelectCell, L_DispContainerIsCellSelected, L_DispContainerIsCellFrozen

Topics:

Image Viewer Cells

 

Image Viewer Functions: Image Viewer Cells

Example

This example print the first cell

HBITMAP DispContainerPrintCellExample(HDISPCONTAINER hCon)
{
   HBITMAP hBitmap = L_DispContainerPrintCell(hCon, 0, 0);

   return hBitmap;
}