L_ILN_SETFOCUS

Sent when an ImageList Control receives the keyboard focus.

Parameters

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 an ImageList Control receives the keyboard focus.

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

static HWND hCtl; 
 L_SIZE_T  MainWndProc1(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) 
               { 
                  case L_ILN_SETFOCUS: 
                     MessageBeep(MB_OK); 
                     break; 
                  case L_ILN_KILLFOCUS: 
                     MessageBeep(MB_ICONEXCLAMATION); 
                     break; 
                  /* other code here */ 
               } 
               break; 
               /* other code here */ 
         } 
         break; 
         /* other code here */ 
   } 
   return DefWindowProc (hWnd, Message, wParam, lParam); 
} 

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help