Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.1
LEADTOOLS Raster Imaging C DLL Help

L_ILM_SCROLLITEMS

Show in webframe

Send this message to scroll the items in the ImageList Control.

Parameter

Description

wParam

Ignored, use 0.

lParam

Number of rows/columns to scroll.

 

Returns

<>0

The actual number or rows/columns scrolled.

0

Did not scroll or an error occured. Refer to Return Codes.

Comments

Depending on the current setting for the control's ScrollStyle, the specified number or rows or columns will be scrolled if possible. The actual number or rows/columns scrolled will be returned.

The associated macro is:

L_ImgListScrollItems(hWnd, uCount)

For a complete list of available macros, refer to the Ltlst.h file.

See Also

Elements:

L_ILM_GETSCROLLSTYLE, L_ILM_INSERT, L_ILM_ENSUREVISIBLE, L_ILM_GETPAGE, L_ILM_GETITEMCOUNT

Topics:

Using the ImageList Control

 

Image List Control Messages

 

Example

 L_INT ILM_SCROLLITEMSExample(HWND hCtrl)
{
   if(IsWindow(hCtrl))
   {
      L_TCHAR szText[200];

      /* scroll down 2 rows */
      L_INT nRet = (L_INT) SendMessage(hCtrl, L_ILM_SCROLLITEMS, 0, 2L);
      wsprintf(szText, TEXT("%ld"), nRet);
      MessageBox(hCtrl, szText, TEXT("Scroll"), MB_OK);

      return SUCCESS;
   }
   else
      return ERROR_INVALID_PARAMETER;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.