LImageListControl::GetScrollStyle

#include "ltwrappr.h"

L_INT LImageListControl::GetScrollStyle(L_VOID)

Gets the current ImageList Control scroll style.

Returns

The current scroll style. Possible values are:

Value

Meaning

SCROLLSTYLE_VERTICAL

[0] scrolling vertically

SCROLLSTYLE_HORIZONTAL

[1] scrolling horizontal

Required DLLs and Libraries

LTDIS
LTFIL
LTIMG

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

Class Members

Topics:

Using the ImageList Control

Example

L_INT LImageListControl__GetScrollStyleExample()
{
   LImageListControl m_ImgList;
   // set for Horz. Scrolling
   if(m_ImgList.GetScrollStyle() != SCROLLSTYLE_HORIZONTAL)
   {
      m_ImgList.SetScrollStyle(SCROLLSTYLE_HORIZONTAL);
      ::RedrawWindow(m_ImgList.m_hWnd, NULL, NULL, RDW_INVALIDATE);
   }
   return SUCCESS;
}