Board index » cppbuilder » Spontaneous font change in custom draw list view
alisdair.meredit
![]() CBuilder Developer |
Sun, 11 Aug 2002 03:00:00 GMT
Spontaneous font change in custom draw list view
We are trying to add a 'coloured blob' as the first column of a
TListView. We so this using OnCustomDrawSubItem, setting DefaultDraw = true unless column == 1. Col 0 is a checkbox, provided by the control itself. Everything seemed fine when we used the Canvas->Recatangle call to do Current solution is to draw empty text, using the WinAPIs SetBkColor and This draws the 'blob' perfectly well, but the rest of that row will draw Does anyone know how to restore the correct font in this second case, or Thanks for any advice AlisdairM |