EssGNewGrid() initializes a specific grid.
ESSG_FUNC_M EssGNewGrid (Handle, phGrid);
ESSG_HANDLE_T | Handle; /* IN */ |
ESSG_PHGRID_T | phGrid; /* OUT */ |
Handle
| Handle passed back from EssGInit. |
phGrid | Pointer to the grid-specific handle sent back from the EGAPI. |
If successful, returns ESSG_STS_NOERR
.
None.
#include <essapin.h> #include <essgapin.h> ESSG_FUNC_M sts = ESS_STS_NOERR; ESSG_INIT_T InitStruct; ESSG_HANDLE_T Handle; ESSG_HGRID_T hGrid; InitStruct.ulVersion = ESSG_VERSION; InitStruct.ulMaxRows = 1000; InitStruct.ulMaxColumns = 200; InitStruct.pfnMessageFunc = ESS_NULL; InitStruct.pUserdata = ESS_NULL; /* initializes EGAPI */ sts = EssGInit(&InitStruct, &Handle); /* initializes a specific grid */ if(!sts) sts = EssGNewGrid(Handle, &hGrid);Using the Grid API Functions