Scrolls the items in the ImageList Control.
#include "ltwrappr.h"
L_INT LImageListControl::ScrollItems(nCount)
The number of rows or columns to scroll.
Value | Meaning |
---|---|
<>0 | The number of rows or columns scrolled. |
0 | Did not scroll OR an error occurred. |
Depending on the current setting for the control's ScrollStyle, the specified number of rows or columns will be scrolled if possible. The actual number or rows/columns scrolled will be returned.
Win32, x64.
L_INT LImageListControl__ScrollItemsExample(HWND hParent)
{
L_INT nRet;
LImageListControl m_ImgList;
if(m_ImgList.CreateControl(hParent,0) == NULL)
return FAILURE;
// insert some items here
//Scroll Items by 2
nRet = m_ImgList.ScrollItems(-2);
if(nRet == 0)
return nRet;
AfxMessageBox(TEXT("wait"));
//now scroll back
nRet = m_ImgList.ScrollItems(2);
if(nRet == 0)
return nRet;
return SUCCESS;
}
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