#include "ltivw.h"
L_LTIVW_API L_HWND L_DispContainerCreateCell(hWndParent, uFlags);
Creates a cell, which is a window that will contain the image. Each cell can hold a single image or a list of images.
Handle to the parent or owner window of the container window being created.
Reserved for future. Must be 0.
| Value | Meaning |
|---|---|
| >0 | A handle to the cell window. |
| NULL | An error occurred. To get extended error information, call GetLastError and Refer to Return Codes. |
The newly created cell will be empty. To add a bitmap list to it, use the function L_DispContainerSetCellBitmapList.
Required DLLs and Libraries
This function creates a new cell.
L_INT L_DispContainerCreateCellExample(HDISPCONTAINER hCon,HBITMAPLIST * hBitmapList,L_INT nCellIndex){L_INT nRet;L_INT nCount = L_DispContainerGetCellCount (hCon, 0);// Check the validity of the cell indexif ((nCellIndex < 0) || (nCellIndex >= nCount))return 0;HWND hParent = L_DispContainerGetWindowHandle(hCon, 0);HWND hCellWnd = L_DispContainerCreateCell(hParent, 0);// retrieve the bitmap list.nRet = L_DispContainerGetCellBitmapList(hCellWnd, hBitmapList, 0);if(nRet != SUCCESS)return nRet;nRet = L_DispContainerInsertCell(hCon, hCellWnd, 0, 0);if(nRet != SUCCESS)return nRet;return SUCCESS;}