Setting strings row wise

Discussion in 'MFC' started by sujan.dasmahapatra, Jul 25, 2009.

  1. sujan.dasmahapatra

    sujan.dasmahapatra Member

    Joined:
    Jun 11, 2009
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Gender:
    Male
    Dear Friends
    I am wirting an application where I need to display texts on the client window row wise on a new line.
    So I have created a class MyEdit derived from CListBox and trying to write text onto it.
    I am creating the object olf MyEdit like this .

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////
    class MyEdit : public CListBox
    {
    };
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////
    myedit = new MyEdit();
    myedit->Create(ES_MULTILINE | WS_CHILD | LBS_USETABSTOPS | WS_VISIBLE | WS_TABSTOP | WS_BORDER, rect
    /* CRect(0,0,1000,1000)*/,this, 1);
    myedit->AddString("Line no 1\t");

    /////////////////////////////////////////////////////////////////////////////////////////////////////////

    But in the first place it's not writing texts onto the clientwindow (or ListBox) can anyone tell me whats the problem...?????
    After writing I want to write a second texts in the 2nd line..
    Please hel p me someone...
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice