sThisError is a CString variable as well that is loaded elsewhere with the actual error and debugging information.
When the dialog opens, it looks fine... can read the scrollable box, no problem. BUT, when you start scrolling it (with a mouse, with the scrollbar, with whatever)... as the text in the box starts overwriting what is there... making it unreadable. (see attached picture)
If you "highlight" the screwed up text in the box and drag through it, miraculously it becomes readable.
If you minimize the application or open another application over it... when you go back to it, you can read it as well.
At this point, I am at a total loss... I've never seen anything like this.
Re: Scroll Multiline Edit Box overwrites text within???
Can you show the properties (windows styles) of the edit box? Open the resource editor (IDD_ERR) and look at the properties of the edit box.
You open the error dialog without a parent window. That is legal, but sometimes not the best choice. E.g. your error message can be hidden behind your application. But I guess that's not the reason for your problem.
Does your main app change the behaviour of this dialog in a miracolous way? E.g. is there a call to LockWindowUpdate? Are you hooking some messages? Does the behaviour occur on different systems/computers? Which system is it? Version?
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.