work on windows and barchart titlebars