ImageGear for C and C++ on Windows v19.6 - Updated
IG_mpi_CB_reset_all
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Multi Page Image Functions > IG_mpi_CB_reset_all

This function works the same way as the IG_mpi_CB_reset() function, but removes all callback data and functions from the multi-page image.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_mpi_CB_reset_all( 
        [IN] HMIGEAR hMIGear 
);

Arguments:

Name Type Description
hMIGear HMIGEAR The handle to the allocated multi-page image.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Sample:

None

Example:

 
Copy Code
HMIGEAR hMIGear;     /* handle to multi-page image */
AT_ERRCOUNT             nErrCount = IGE_SUCCESS; /* will hold returned error count  */
DWORD dwCBID1, dwCBID2;
 ...
nErrCount = IG_mpi_CB_set( hMIGear, (LPVOID)hMIGear, _MPWndUpdate, &dwCBID1 );
nErrCount = IG_mpi_CB_set( hMIGear, (LPVOID)hMIGear, _MPWndUpdate, &dwCBID2 );
 ...
nErrCount = IG_mpi_CB_reset_all( hMIGear );
 ...
}
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;
         ...
   }
}