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_ILN_HSCROLL

Show in webframe

Sent when the user scrolls the ImageList Controls contents using the horizontal scrollbar.

Parameter

Description

wParam

idCtrl = (L_INT) LOWORD(wParam) identifier of control

 

wNotifyCode = HIWORD(wParam) notification code

lParam

hWndCtrl = (HWND) lParam handle of the control

Comments

Sent when the user scrolls the ImageList Controls contents using the horizontal scrollbar.

The parent window of the control receives this notification message through the WM_COMMAND message.

See Also

Elements:

L_ILN_SETFOCUS, L_ILN_KILLFOCUS, L_ILN_VSCROLL, L_ILN_CLICKED, L_ILN_DBLCLCK, L_ILN_ITEMSEL, L_ILN_ITEMUNSEL, L_ILN_KEYDOWN

Topics:

Using the ImageList Control

 

Image List Control Command Notifications

Example

this function processes all the messages for a window

static HWND hCtl;
L_SIZE_T MainWndProc3(HWND hWnd, L_UINT Message, WPARAM wParam,
                                   LPARAM lParam)
{
   WORD wNotifyCode;
   L_INT idCtl;
   HWND hWndCtrl;

   switch (Message)
   {
      case WM_SETFOCUS:
         if(hCtl)
            SetFocus(hCtl);
         break;
      case WM_COMMAND:
         wNotifyCode = HIWORD(wParam); // notification code 
         idCtl       = LOWORD(wParam); // item, control, or accelerator identifier 
         hWndCtrl    = (HWND) lParam;  // handle of control 
         switch(idCtl)
         {
            case IDC_LEADIMAGELIST:
               switch(wNotifyCode)
               {
                  /* other code here */
                  case L_ILN_HSCROLL:
                     MessageBox(hWnd, TEXT("Horizontal Scroll"), TEXT("Notify"), MB_OK);
                     break;
                  case L_ILN_VSCROLL:
                     MessageBox(hWnd, TEXT("Vertical Scroll"), TEXT("Notify"), MB_OK);
                     break;
                  /* other code here */
               }
               break;
               /* other code here */
         }
         break;
         /* other code here */
   }
   return DefWindowProc (hWnd, Message, wParam, lParam);
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.