How to set the color of VirtualStringTree header?
问题 The VirtualStringTree header has a 'Background' property but setting it to a different color does not change the color. I suspect the tree is rendered using Windows themes. How can I set the color? 回答1: You can use property THeader.Background but you'll have to exclude toThemeAware from TreeOptions.PaintOptions . That would turn off themes, as TLama already said in his comment above. I recommend you to use the events OnAdvancedHeaderDraw and OnHeaderDrawQueryElements . hoOwnerDraw has to be