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_GETSCROLLSTYLE

Show in webframe

Send this message to get the ImageList control's current scroll style.

Parameter

Description

wParam

Ignored, use 0.

lParam

Ignored, use 0.

Returns

The current scroll style, which can be one of the following:

SCROLLSTYLE_VERTICAL

[0] scrolling vertically

SCROLLSTYLE_HORIZONTAL

[1] scrolling horizontally

Comments

The associated macro is:

L_ImgListGetScrollStyle(hWnd)

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

See Also

Elements:

L_ILM_SETSCROLLSTYLE, L_ILM_SCROLLITEMS, L_ILM_ENSUREVISIBLE

Topics:

Using the ImageList Control

 

Image List Control Messages

 

Example

 L_INT ILM_GETSCROLLSTYLEExample(HWND hCtrl)
{
   L_INT nStyle;
   if(IsWindow(hCtrl))
   {
      /* get current scroll style */
      nStyle = (L_INT)SendMessage(hCtrl, L_ILM_GETSCROLLSTYLE, 0, 0L);
      if(nStyle == SCROLLSTYLE_VERTICAL)
         nStyle = SCROLLSTYLE_HORIZONTAL;
      else
         nStyle = SCROLLSTYLE_VERTICAL;
      /* set new scroll style */
      return (L_INT)SendMessage(hCtrl, L_ILM_SETSCROLLSTYLE, (WPARAM)nStyle, 0L);
   }
   else
      return ERROR_INVALID_PARAMETER;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.