1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Setting strings row wise

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

  1. sujan.dasmahapatra

    sujan.dasmahapatra New Member

    Joined:
    Jun 11, 2009
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    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