ImageGear Professional DLL v18.1 for Windows
LPFNIG_GUIPAGESELECTPROC
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Callback Functions Reference > LPFNIG_GUIPAGESELECTPROC

Glossary Item Box

This callback function gets called every time a page icon is selected (mouse-clicked over) by the user from the page sorter window.

Declaration:

  Copy Code
typedef VOID (ACCUAPI LPFNIG_GUIPAGESELECTPROC)(
        LPVOID lpPrivate, 
        HWND hwndPage, 
        HIGEAR hIGear, 
        UINT nPageNumber 
);

Arguments:

Name Type Description
lpPrivate LPVOID A far pointer to private data that is being pass into the callback.
hwndPage HWND Windows handle to the GUI page sorter window.
hIGear HIGEAR HIGEAR handle to the image.
nPageNumber UINT The page number of the currently selected page icon.

Return Value:

None

Supported Raster Image Formats:

All pixel formats supported by ImageGear Professional.

Sample:

Page

Example:

  Copy Code
HIGEAR hIGear;    /* HIGEAR handle of image  */
HWND hwndPage;   /* Windows handle to the page sorter window    */
LPFNIG_GUIPAGESELECTPROC PageSelectProc; /* Callback for icon selection*/
IG_GUI_page_select_CB_register(hwndPage, PageSelectProc, NULL);
/***************************************************************************/
/* Called when a page is selected                                          */
/***************************************************************************/
VOID ACCUAPI PageSelectProc(
   LPVOID   lpPrivateData,
   HWND     hwndPage,
   HIGEAR   hIGearPage,
   UINT     nPage
   )
{
   CHAR     szBuf[_MAX_PATH + 32];
   hwndPage, lpPrivateData;
   hIGear = hIGearPage;
   nCurrentPage = nPage;
   /* change the title of the main window to reflect a page change */
   wsprintf(szBuf, "%s Page:  %d", (LPVOID)szFile, nPage);
   SetWindowText(hWndMain, szBuf);
   IG_dspl_dithering_set(hIGear, IG_GRP_DEFAULT, IG_DSPL_DITHER_FIXED_PALETTE);
   InvalidateRect(hWndMain, NULL, FALSE);
   UpdateWindow(hWndMain);
}

Remarks:

This callback must first be registered by calling IG_GUI_page_select_CB_register().

©2014. Accusoft Corporation. All Rights Reserved.