L_ILN_CLICKED

Sent when the user clicks a mouse button in the ImageList Control's client area.

Parameters

wParam

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

wNotifyCode = HIWORD(wParam) notification code.

lParam

pClick = (pLILCLICK) lParam pointer to click info structure.

Comments

Sent when the user clicks a mouse button in the ImageList Control's client area. pClick contains the mouse position of the click event.

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  MainWndProc5(HWND hWnd, L_UINT Message, WPARAM wParam,LPARAM lParam) 
{ 
   WORD wNotifyCode; 
   L_INT idCtl; 
   HWND hWndCtrl; 
   L_TCHAR buf[300]; 
   pLILCLICK pClick; 
 
   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_CLICKED: 
                     pClick = (pLILCLICK)lParam; 
                     wsprintf(buf, TEXT("x: %ld, y: %ld"), pClick->xPos, pClick->yPos); 
                     MessageBox(hWnd, buf, TEXT("Clicked"), MB_OK); 
                     break; 
                  /* other code here */ 
               } 
               break; 
               /* other code here */ 
         } 
         break; 
         /* other code here */ 
   } 
   return DefWindowProc (hWnd, Message, wParam, lParam); 
} 

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

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.