L_ILM_GETSELCOUNT

Send this message to get the current number of selected items in the ImageList Control.

Parameter

Description

wParam

Ignored, use 0.

lParam

Ignored, use 0.

Returns

>=0

The number of selected items.

< 0

An error occurred. Refer to Return Codes.

Comments

Use this message before using L_ILM_GETSELITEMS in order to get the number of selected items for allocating storage for the LILITEM structures.

The associated macro is:

L_ImgListGetSelCount(hWnd)

For a complete list of available macros, refer to the Ltlst.h file.

See Also

Elements:

L_ILM_GETSELITEMS, L_ILM_GETROWCOUNT, L_ILM_GETCOLCOUNT, L_ILM_GETITEMCOUNT, L_ILM_GETPAGECOUNT

Topics:

Using the ImageList Control

 

Image List Control Messages

Example

L_INT ILM_GETSELCOUNTExample(HWND hCtrl) 
{ 
   if(IsWindow(hCtrl)) 
   { 
      L_TCHAR szText[200]; 
      L_INT nCount = (L_INT)SendMessage(hCtrl, L_ILM_GETSELCOUNT, 0, 0L); 
      wsprintf(szText, TEXT("%ld"),nCount); 
      MessageBox(hCtrl, szText, TEXT("SelectCount"), MB_OK); 
 
      return SUCCESS; 
   } 
   else 
      return ERROR_INVALID_PARAMETER; 
} 

Help Version 20.0.2018.2.25
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C API Help