Before i used an ownerdrawn listbox and once set to ownerdrawn it won't paint itself any longer.
Now i am using a treeview and as you can see in this little app:
..it is hard to avoid some painting like the selected state is still painted for example.
Issue is that due the painting twice it may flicker a little.
You can see when you expand a childnode and select it and then hold the tab key.
The blue focus area sometimes pains in the left hand border.
I was only succesful to draw this border during CDDS_ITEMPOSTPAINT.
(forgot why)
Anyway, the selected state should be drawn half ways and i would like to supress the normal painting at all.
Now i am using a treeview and as you can see in this little app:
..it is hard to avoid some painting like the selected state is still painted for example.
Issue is that due the painting twice it may flicker a little.
You can see when you expand a childnode and select it and then hold the tab key.
The blue focus area sometimes pains in the left hand border.
I was only succesful to draw this border during CDDS_ITEMPOSTPAINT.
(forgot why)
Anyway, the selected state should be drawn half ways and i would like to supress the normal painting at all.
Comment