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

    CEdit or CListCtrl do not display text



    Hi,

    I am trying to display a list of information as it occures in a dialog. I thought that a CListBox would be the best

    method but I can not get it to update and display the text that is being sent. I have also tried a CEdit ctrl with the

    same problem. If I use a CStatic string however, it will work but does not provide for scrolling text with a scroll

    bar. I have tried to Invalidate on the control and CDialog::UpdateData(..) with both true and false but the control

    remains happily blank.

    CListBox attempt...

    m_export_status.SetTextColor(COLORREF(0x00FF0000));

    m_export_status.InsertItem(LVIF_TEXT,status);

    m_export_statusX.LineScroll(1, 0 );

    CEdit attempt

    m_export_status += CString(status) + "\n";

    m_export_statusX.Invalidate();


    CDialog::UpdateData( FALSE );


    Any suggestions?

    Thanks



  2. #2
    Join Date
    Apr 1999
    Posts
    191

    Does your DDX function have the appropriate call?



    Just a guess, but does your DoDataExchange() function have the appropriate DDX call to transfer the data between the member variable and the dialog? If not, then this is your problem. I don't think you need Invalidate(), or at least I don't when I do this sort of thing.

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