Send this message to get the ImageList control's current scroll style.
Ignored, use 0.
Ignored, use 0.
The current scroll style, which can be one of the following:
Value | Meaning |
---|---|
SCROLLSTYLE_VERTICAL | [0] scrolling vertically |
SCROLLSTYLE_HORIZONTAL | [1] scrolling horizontally |
The associated macro is:
For a complete list of available macros, refer to the Ltlst.h file.
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 Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document