CListBox in MFC is a powerful control. It can be used for displaying the normal text and even custom data like pictures. Whenever such custom behavior is needed, a new class has to be derived from CListBox and the MeasureItem and DrawItem functions should …