Announcement

Collapse
No announcement yet.

Better moment than CDDS_ITEMPOSTPAINT (treeview)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Better moment than CDDS_ITEMPOSTPAINT (treeview)

    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:

    http://www.hellobasic.com/trials/ptv.zip

    ..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.
    hellobasic

  • #2
    Oops, got it.

    Using CDRF_SKIPDEFAULT during CDDS_ITEMPREPAINT helps
    hellobasic

    Comment

    Working...
    X