ImageGear Professional > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Multi Page Image Functions > IG_mpi_CB_reset |
This function removes previously associated callback data from the multi-page image using the dwCBID identifier.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_mpi_CB_reset( [IN] HMIGEAR hMIGear, [IN] DWORD dwCBID ); |
Name | Type | Description |
hMIGear | HMIGEAR | Handle to allocated multi-page image. |
dwCBID | DWORD | Unique identifier of private data and function. |
Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.
All pixel formats supported by ImageGear Professional.
Copy Code
|
|
---|---|
HMIGEAR hMIGear; /* handle to multi-page image */ AT_ERRCOUNT nErrCount = IGE_SUCCESS; /* will hold returned error count */ LPVOID lpData; LPFNIG_MPCB_UPDATE lpUpdateFunc; DWORD dwCBID; ... nErrCount = IG_mpi_CB_set( hMIGear, (LPVOID)hMIGear, _MPWndUpdate, &dwCBID ); ... nErrCount = IG_mpi_CB_reset( hMIGear, dwCBID ); ... } VOID ACCUAPI _MPWndUpdate( DWORD dwCBID, LPVOID lpPrivate, /* Private data passed in */ AT_MODE nMode, UINT nPage, UINT nCount ) { switch( nMode ) { case IG_MPCBMODE_MPI_DELETE: ... break; case IG_MPCBMODE_MPI_ASSOCIATED: ... break; case IG_MPCBMODE_MPI_CLOSE: ... break; ... } } |
See the IG_mpi_CB_set()documentation for a description of how notification works with multi-page images. After calling this function, the appropriate callback function receives notifications and removes the data from the active list.