The easiest way to change the colors of the list and tree.

I am trying to find an easy way to change the color of text and background in elements listviewand treeviewin WTL or regular Win32 code.

I really don't want to implement a complete owner drawing for these controls, just changing the colors used.

I want to make sure that the images are still drawn with proper transparency.

Any suggestions?

+5
source share
4 answers

CListViewCtrl CTreeViewCtrl:

  • GetBkColor
  • SetBkColor
+2

WTL CCustomDraw:: OnItemPrePaint (, )

, ,

+2

, API win32, , WM_ERASEBACKGROUND , FillRect() , , , .

0

All Articles