MrPaul
Contributor
SOLVED: New Listview-style headers... an easy route?
Greetings. Long time reader, first time poster...
I am building a custom control, the fabled 'TreeList' (columns like a listview but with collapsible sections like a treeview) with bells on, both because it is the ideal method of displaying what I wish to display, and because it's an ideal way to practice some control development.
Now on to the question. Using the ControlPaint class its dead easy to draw the column headers ala Windows 2000. However, these blocky buttons can look a bit out of place when surrounded by other controls which have adopted the system theme on XP. So, I'm asking if there is any simple way (or even not so simple, Im a big boy!) of getting the look of the 'stylish' listview-style column header buttons when the system theme is so, and the old-skool blocky column headers otherwise.
(See image below).
Thanks peeps.
Greetings. Long time reader, first time poster...
I am building a custom control, the fabled 'TreeList' (columns like a listview but with collapsible sections like a treeview) with bells on, both because it is the ideal method of displaying what I wish to display, and because it's an ideal way to practice some control development.
Now on to the question. Using the ControlPaint class its dead easy to draw the column headers ala Windows 2000. However, these blocky buttons can look a bit out of place when surrounded by other controls which have adopted the system theme on XP. So, I'm asking if there is any simple way (or even not so simple, Im a big boy!) of getting the look of the 'stylish' listview-style column header buttons when the system theme is so, and the old-skool blocky column headers otherwise.
(See image below).
Thanks peeps.
Attachments
Last edited: