This appears to be a Windows editbox limit - it has a maximum single line length limit of 4096 characters. It doesn't look like there is a way to extend this. One way around this would be to use a custom non-standard editbox control, however that's something I'd rather avoid since it would likely introduce other issues. I'm not sure if there's practical solution to this issue.