L_ILM_GETSCROLLSTYLE

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;
}