Scrolls the zones of the currently displayed page, by the specified values.
Handle to the OCR document.
POINT structure that contains values that represent the amount of vertical and horizontal scrolling.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
When a page is scrolled, the zones on that page must also be scrolled and redrawn in their new locations, relative to the page. The amount the page was scrolled indicates the amount by which the zones must be scrolled. This amount is specified in the X and Y parameters.
Required DLLs and Libraries
L_INT Doc2OffsetZonesExample(L_HDOC2 hDoc,HWND hWnd)
HDC hdc = GetDC(hWnd);
ptScroll.x = 0;
ptScroll.y = 0;
pt.x = 450;
pt.y = 400;
nRet = L_Doc2OffsetZones(hDoc, ptScroll);
if(nRet != SUCCESS)
nRet = L_Doc2SelectZoneByPoint(hDoc, hdc, 0, pt, &nSelZone);
if (nRet == SUCCESS)
wsprintf(szBuffer, TEXT("The selected zone index = %d\n"), nSelZone);
MessageBox(NULL, szBuffer, TEXT("Notice!"), MB_OK);