Click to See Complete Forum and Search --> : DrawItem() on ListCtrl isn't called


Omer S.
April 29th, 1999, 11:35 AM
Hi,
I'm trying to write an owner-drawn List control. To do this I've implemented CListCtrl's DrawItem().I also clicked the "Owner draw fixed" Checkbox of that control in the resource editor, and checked that LVS_OWNERDRAWFIXED does appear in the .rc file.
However DrawItem() never gets called !!! the control simply draws the images and text I insert without going through InsertItem().

Any Ideas any one ?

Thanks,
Omer

April 30th, 1999, 09:33 AM
I assume you know that ListCtrls can only be use drawn in "report" mode? In small icon and large icon modes they owner draw flag has no effect.