LImageListControl::ScrollItems

Summary

Scrolls the items in the ImageList Control.

Syntax

#include "ltwrappr.h"

L_INT LImageListControl::ScrollItems(nCount)

Parameters

L_INT nCount

The number of rows or columns to scroll.

Returns

Value Meaning
<>0 The number of rows or columns scrolled.
0 Did not scroll OR an error occurred.

Comments

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.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

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 Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.