L_ILN_KEYDOWN

Sent when the user presses a key while the ImageList Control has the focus.

Parameters

wParam

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

wNotifyCode = HIWORD(wParam) notification code.

lParam

pKeyInfo = (pLILKEYDOWN) lParam pointer to key info structure.

Comments

Sent when the user presses a key while the ImageList Control has the focus. pKeyInfo contains information about the key that was pressed.

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

See Also

Elements

Topics

Example

This function processes all the messages for a window.

 L_SIZE_T MainWndProc6(HWND hWnd, L_UINT Message, WPARAM wParam, 
                                   LPARAM lParam) 
{ 
   WORD wNotifyCode; 
   L_INT idCtl; 
   HWND hWndCtrl; 
    
   switch (Message) 
   { 
      case WM_SETFOCUS: 
         if(hWnd) 
            SetFocus(hWnd); 
         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_KEYDOWN: 
                     MessageBox(hWnd, TEXT("KeyPress"), TEXT("KeyPress"), MB_OK); 
                     break; 
                  /* other code here */ 
               } 
               break; 
               /* other code here */ 
         } 
         break; 
         /* other code here */ 
   } 
   return DefWindowProc (hWnd, Message, wParam, lParam); 
} 

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.