This callback function gets called whenever the pages in the page sorter window have been re-ordered by the user.
Copy Code
|
|
---|---|
typedef VOID (ACCUAPI LPFNIG_GUIPAGEORDERPROC)( LPVOID lpPrivate, HWND hwndPage ); |
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. |
None
This function does not process image pixels.
Page
Copy Code
|
|
---|---|
HIGEAR hIGear; /* HIGEAR handle of image */ HWND hWndPage; /* Windows handle to page sorter window */ LPFNIG_GUIPAGEORDERPROC PageOrderProc; /* Callback for page reordering*/ IG_GUI_page_order_CB_register(hwndPage, PageOrderProc, NULL); /***************************************************************************/ /* Called when a pages are reordered */ /***************************************************************************/ VOID ACCUAPI PageOrderProc( LPVOID lpPrivateData, HWND hwndPage ) { lpPrivateData; /* set the global hIGear to the current page */ IG_GUI_page_handle_get(hwndPage, nCurrentPage, &hIGear); InvalidateRect(hWndMain, NULL, FALSE); UpdateWindow(hWndMain); } |
This function gives you notification that the pages have been re-ordered.
This callback must first be registered by calling IG_GUI_page_order_CB_register().