Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de writes:
Please give at least a hint for a proper fix ...
Well I don't really know, someone needs to investigate how Windows does it. But it should be possible to change the window style without copying the template, or if we really need to do the copy write a single routine for that, that parses the template to determine the proper size to copy.