Send this message to get the number of pages of items in the ImageList Control.
Parameter |
Description |
wParam |
Ignored, use 0. |
lParam |
Ignored, use 0. |
>=0 |
The number of pages |
< 0 |
An error occurred. Refer to Return Codes. |
This message will return the total number of pages of items in the ImageList Control. Pages are calculated using the total number of rows or columns (depending on the scroll style) and the total number of rows or columns (depending on the scroll style) that are completely visible in the ImageList Control's client area.
The associated macro is:
L_ImgListGetPageCount(hWnd)
For a complete list of available macros, refer to the Ltlst.h file.
Elements: |
L_ILM_GETPAGE, L_ILM_GETITEMCOUNT, L_ILM_GETROWCOUNT, L_ILM_GETCOLCOUNT, L_ILM_GETSELCOUNT, L_ILM_GETSCROLLSTYLE |
Topics: |
|
|
L_INT ILM_GETPAGECOUNTExample(HWND hCtrl)
{
L_INT32 lCount;
L_INT32 lPage;
L_TCHAR buf[200];
if(IsWindow(hCtrl))
{
/* get current page count */
lCount = (L_INT32)SendMessage(hCtrl, L_ILM_GETPAGECOUNT, 0, 0L);
/* get current page */
lPage = (L_INT32)SendMessage(hCtrl, L_ILM_GETPAGE, 0, 0L);
wsprintf(buf, TEXT("Page: %ld of %ld Pages!"), lPage, lCount);
MessageBox(hCtrl, buf, TEXT("Page Count"), MB_OK);
return SUCCESS;
}
else
return ERROR_INVALID_PARAMETER;
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET