Send this message to get the number of pages of items in the ImageList Control.
Ignored, use 0.
Ignored, use 0.
Value | Meaning |
---|---|
>=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:
For a complete list of available macros, refer to the Ltlst.h file.
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;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document