LEADTOOLS Raster Imaging C++ Class Library Help > Classes and Member Functions > LImageListControl > LImageListControl Member Functions > LImageListControl::ItemSelected |
#include "ltwrappr.h"
virtual L_VOID LImageListControl::ItemSelected (nCtlID, pItemSel)
L_INT nCtlID; |
/* the controls ID */ |
pLILITEMSEL pItemSel; |
/* pointer to a structure that contains information about the selected item */ |
Override this function to be notified when the user selects an item in the ImageList Control.
Parameter |
Description |
nCtlID |
Identifier of the control. |
pItemSel |
Pointer to an LILITEMSEL structure containing information about the selected item. |
Returns
None
Comments
This function is called when an Item is selected by the user.
You can override this function instead of processing the L_ILN_ITEMSEL command notification when you are sub-classing the ImageList Control.
The lIndex member of the LILITEMSEL structure pointed to by pItemSel will contain the 0-based index of the selected item.
Required DLLs and Libraries
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
See Also
Functions: |
|
Topics: |
Example
For an example, refer to LImageListControl::MsgProcCallBack.