CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    May 2009
    Posts
    103

    Scroll Multiline Edit Box overwrites text within???

    Boy, I've never seen this before... and it only happens on one EditBox within this application. At this point, I am at a loss as to what is going on.

    We have an "error" reporting feature. It contains a MultiLine EditBox that has a CString variable assigned to it via the ClassWizard.

    The variable is initialized as follows:

    Code:
    CErrDlg dlg;
    dlg.m_sError=sThisError;
    dlg.DoModal();
    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.

    Suggestions...
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured