Hi, first I must say that I find your classes and sources
very useful and a very good base also for my apps.
I tried the CListBoxST class with icons which worked
perfect but with bitmaps there was the problem that the
height of the listbox lines did not match to the bitmap
height. It was displayed only with the height of one text line.
After using the Listbox first with a icon Imagelist and
changing to a bitmaplist it worked fine.
For above, It show nothing.
// The reason:
void CButtonST::PrepareImageRect(BOOL bHasTitle, RECT* rpItem, CRect* rpTitle, BOOL bIsPressed, DWORD dwWidth, DWORD dwHeight, CRect* rpImage)
if (bHasTitle == FALSE)
// Center image horizontally
rpImage->left += ((rpImage->Width() - dwWidth)/2);
//above line, you do not check rpImage->Width() & dwWidth value, i found its value reach a large number