L_ILM_GETSCROLLSTYLE

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

Parameters

wParam

Ignored, use 0.

lParam

Ignored, use 0.

Returns

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

Value Meaning
SCROLLSTYLE_VERTICAL [0] scrolling vertically
SCROLLSTYLE_HORIZONTAL [1] scrolling horizontally

Comments

The associated macro is:

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

See Also

Elements

Topics

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 */ 
      SendMessage(hCtrl, L_ILM_SETSCROLLSTYLE, (WPARAM)nStyle, 0L); 
      return SUCCESS; 
   } 
   else 
      return ERROR_INVALID_PARAMETER; 
} 
Help Version 21.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.