MFC CListBox

   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 …

   CListBox is being used to display the Fonts installed in the local machine in this project with an owner-draw list box. The class uses an abstract object to draw the items. In this case a class derived from the abstract object is created to …

   CListBox class as such does not give support for different fonts or colors. So whenever a programmer needs to use different fonts or colors, he should derive a class from CListBox and override the DrawItem & MeasureItem functions. The property ListBox Properties –> Styles …

CListBox class can contain string data type as well as Icons. In fact in Windows all controls are considered to be a window with their own Message Maps, Screen formatting functions etc., Most of these controls are derived from the parent CWnd classes and hence …