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