MouseDown example for C++ 5.0 and later
void CBrowseDlg::OnMouseDownLeadimglistctrl1(short Button, short Shift, float x, float y)
{
int nItem;
nItem = m_LEADImageList.HitTest(x, y);
if(nItem >= 0)
{
m_LEADImageList.SetSelectionColor(RGB(255, 0, 0));
m_LEADImageList.Item (nItem).SetSelected(TRUE);
}
}